Skip to main content
Mathematics & calculation

Perimeter of a Rectangle Calculator

Calculate the perimeter of a rectangle, the total length of its outline, from its length and width. The formula P = 2 × (L + W) explained, practical examples (baseboards, fencing, picture frame) and different units accepted for each side.

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.