Skip to main content
Mathematics & calculation

Perimeter of a Square Calculator (Side or Diagonal)

Calculate the perimeter of a square from its side (P = 4s) or its diagonal (P = 2√2 × d). Formulas explained, finding the side from the perimeter, edging and fencing examples, in the length unit of your choice.

Local processing · Fits its container · Updated without touching your code

Embed this widget

Customize the result, check the live preview, then copy the code.

Preview

Embed code type

Responsive and automatically resized by Bethemesh.

Code to copy

Need help with the integration?

The documentation details the options, themes, sizes and the integration in each CMS. The code works in an HTML page, WordPress, Webflow, Wix, React, Vue or Astro.