Math Calculator

Perimeter Calculator

Measure the complete boundary, with exact working.

Perimeter inputs

Choose a shape and preserve its dimensions.

Each shape retains its own dimensions when you switch.

Dimensions and display options

Nonnegative decimal, scientific e notation or integer fraction.

Nonnegative decimal, scientific e notation or integer fraction.

Changing this selector reinterprets the entered numbers. It does not rescale the source fields.

Perimeter uses length units: the conversion factor is applied once, without squaring it.

Load a worked example

Default restores every option. Other examples retain your units and display choices.

Exact fractions, symbolic pi and radicals do not change. Very large or tiny values use at least six significant scientific digits.

Use adjacent side lengths for parallelograms, perpendicular legs for right triangles and the stated isosceles assumption for trapezoids. Polygon lists accept three through fifty sides; regular polygons accept three through one thousand sides. Length sources support sixty significant decimal digits or sixty digits per integer fraction, one hundred eighty characters and scientific exponents from negative one hundred through positive one hundred. Exact numerators and denominators have an eighteen-hundred-digit limit. Pi and root decimal views use certified six-hundred-place intervals, checked against the selected rounding. Complete large-radical square-free reduction is not promised. Screen geometry is approximate.

Exact complete perimeter

P=40 cmP=40\,\mathrm{cm}

Rounded perimeter view

P=40 cmP=40\,\mathrm{cm}

The selected formula determines perimeter exactly as straight, pi and nonnegative radical contributions. The decimal view is separate. Unit conversion returns to the exact original perimeter representation with zero residual.

Changing the input unit reinterprets source numbers. The output selector converts boundary length using exact international and stated typographic unit definitions.

Shape and complete boundary

Selected shape and complete boundaryThe dark gold outline marks boundary length with equal horizontal and vertical scale. No area is shaded. A semicircle includes its diameter and a stadium includes both straight sections. Captions identify representative angles and collapsed outlines.Equal horizontal and vertical scale

The outline is drawn from the entered dimensions with equal horizontal and vertical units.

Reference length: 12 cm12\,\mathrm{cm}.

The outlined boundary represents perimeter. Numerical screen geometry is approximate; the exact source lengths and formula determine the result.

Perimeter calculation step by step

  1. Identify the complete boundary

    l=12,w=8l=12,\quad w=8

    Read every source as a side, radius, diameter or count as labeled. Radius is half the matching diameter; a slanted side is not a perpendicular height.

  2. Choose the closed-boundary formula

    P=2(l+w)P=2(l+w)

    A perimeter counts the entire closed boundary. Semicircles include the diameter; stadiums include both straight sections and both rounded ends. The trapezoid method assumes equal legs.

  3. Evaluate the exact components

    P=2(12+8)=40 cmP=2\left(12+8\right)=40\,\mathrm{cm}

    Finite decimals and fractions remain rational. Pi stays symbolic, and any right-triangle or trapezoid root is retained exactly. Decimal presentation is checked separately with certified rational bounds.

  4. Convert length units and verify

    Pout=(1)(40)=40 cmP_{\mathrm{out}}=\left(1\right)\left(40\right)=40\,\mathrm{cm}

    Multiply once by the input-to-output length factor. Dividing every exact component by that factor recovers its original value with zero residual; never square the factor for a perimeter.

Inputs saved with this calculation

Shape
Rectangle
Circular measurement
radius
Active dimensions
Rectangle length: 12; Rectangle width: 8
Common input length unit
Centimeters
Output perimeter unit
Centimeters
Rounded decimal places
6
Show diagram
true
Show conversions
true

All result details

Inspect source dimensions, straight boundary contribution, pi coefficient, squared radical contribution, length conversion multiplier, exact output and zero component residual. The components keep curved and slanted boundary calculations reproducible.

Perimeter calculation details
QuantityExact valueRounded decimalInterpretation
Rectangle length12 cm12\,\mathrm{cm}12 cm12\,\mathrm{cm}An active exact source length.
Rectangle width8 cm8\,\mathrm{cm}8 cm8\,\mathrm{cm}An active exact source length.
Straight boundary contribution40 cm40\,\mathrm{cm}40 cm40\,\mathrm{cm}Exact sum of straight boundary components before conversion.
Pi coefficient0 cm0\,\mathrm{cm}0 cm0\,\mathrm{cm}Multiply this exact length coefficient by pi for the curved contribution.
Radical contribution squared0 cm20\,\mathrm{cm}^{2}0 cm20\,\mathrm{cm}^{2}The nonnegative square root gives the additional boundary contribution.
Length conversion multiplier1111One input unit expressed in the selected output unit. This is a length factor, not an area factor.
Exact output perimeter40 cm40\,\mathrm{cm}40 cm40\,\mathrm{cm}Exact straight, pi and nonnegative radical contributions with a separate rounded view.
Exact conversion verification0000Each exact component converts back to its original value; the component residual is zero.

Perimeter in all supported units

Seventeen physical length conversions use exact ratios. Customary units use international definitions, and typographic units follow the stated inch definitions. Hidden rows remain in CSV.

Exact perimeter unit conversions
UnitExact perimeterRounded perimeter
Nanometers4×108 nm4\times10^{8}\,\mathrm{nm}400000000 nm400000000\,\mathrm{nm}
Micrometers400000 μm400000\,\mathrm{\mu m}400000 μm400000\,\mathrm{\mu m}
Millimeters400 mm400\,\mathrm{mm}400 mm400\,\mathrm{mm}
Centimeters40 cm40\,\mathrm{cm}40 cm40\,\mathrm{cm}
Decimeters4 dm4\,\mathrm{dm}4 dm4\,\mathrm{dm}
Meters25 m\frac{2}{5}\,\mathrm{m}0.4 m0.4\,\mathrm{m}
Decameters125 dam\frac{1}{25}\,\mathrm{dam}0.04 dam0.04\,\mathrm{dam}
Hectometers1250 hm\frac{1}{250}\,\mathrm{hm}0.004 hm0.004\,\mathrm{hm}
Kilometers12500 km\frac{1}{2500}\,\mathrm{km}0.0004 km0.0004\,\mathrm{km}
Mils (one thousandth inch)2×106127 mil\frac{2\times10^{6}}{127}\,\mathrm{mil}≈  15748.031496 mil\approx\;15748.031496\,\mathrm{mil}
Inches2000127 in\frac{2000}{127}\,\mathrm{in}≈  15.748031 in\approx\;15.748031\,\mathrm{in}
International feet500381 ft\frac{500}{381}\,\mathrm{ft}≈  1.312336 ft\approx\;1.312336\,\mathrm{ft}
International yards5001143 yd\frac{500}{1143}\,\mathrm{yd}≈  0.437445 yd\approx\;0.437445\,\mathrm{yd}
International miles25100584 mi\frac{25}{100584}\,\mathrm{mi}≈  0.000249 mi\approx\;0.000249\,\mathrm{mi}
International nautical miles14630 nmi\frac{1}{4630}\,\mathrm{nmi}≈  0.000216 nmi\approx\;0.000216\,\mathrm{nmi}
Typographic points (one seventy-second inch)144000127 pt\frac{144000}{127}\,\mathrm{pt}≈  1133.858268 pt\approx\;1133.858268\,\mathrm{pt}
Typographic picas (one sixth inch)12000127 pc\frac{12000}{127}\,\mathrm{pc}≈  94.488189 pc\approx\;94.488189\,\mathrm{pc}
What Can You Create?

Measure the entire edge of a defined shape

Choose the boundary you actually mean

Select one method and enter only the defining measurements for that outline. A circle has a fully curved boundary; a semicircle also has a straight diameter. A stadium has two straight sections as well as rounded ends. The selected formula, clear labels and native diagram help you count every required piece once. Shape switching preserves independent inputs so comparing methods does not erase a carefully entered fraction.

Keep slanted and curved contributions exact

Straight edges, pi coefficients and nonnegative square roots remain distinct exact contributions. A right-triangle hypotenuse or equal trapezoid leg does not become a prematurely rounded decimal before it is added to other edges. The separate rounded view is useful for estimation, while the symbolic expression preserves the defined problem. Inspect the component table and calculation steps before deciding which displayed precision is appropriate for your measurement.

Compare length units without changing the sources

Use one common input length unit and choose a different output unit when needed. Seventeen physical definitions cover metric, international customary and stated typographic units. Exact rational conversion multiplies the complete boundary length once. Unitless inputs stay unitless. The conversion table and complete CSV record let you compare useful scales while retaining the original measurements and avoiding an accidental area-style squared conversion.

Formulas and worked examples

Perimeter formulas and step-by-step examples

Add the edges and preserve the length unit

The default rectangle has length 12 cm12\,\mathrm{cm} and width 8 cm8\,\mathrm{cm}. Both appear twice on its closed boundary, giving 40 cm40\,\mathrm{cm}. Fractional sides 1/31/3 and 5/75/7 instead give an exact perimeter of 44/2144/21 in the input length unit. Multiplying the two sides would answer a different question about coverage.

P=2(l+w)=2(12+8)=40 cm,2(13+57)=4421P=2(l+w)=2(12+8)=40\,\mathrm{cm},\qquad 2\left(\frac13+\frac57\right)=\frac{44}{21}

Derive a missing right-triangle hypotenuse

For perpendicular legs a=b=1a=b=1, the hypotenuse is 2\sqrt2. Add it to both known legs without rounding it first. Legs 33 and 44 instead produce the rational hypotenuse 55 and perimeter 1212. The formula assumes a right angle; two arbitrary adjacent triangle sides are not enough to determine its third side.

P=a+b+a2+b2,P=2+2,3+4+32+42=12P=a+b+\sqrt{a^2+b^2},\qquad P=2+\sqrt2,\qquad 3+4+\sqrt{3^2+4^2}=12

Distinguish a circle from a closed semicircle

Radius 55 gives circle circumference 10π10\pi. A closed semicircle of that radius has perimeter 10+5π10+5\pi, because its straight diameter must also be counted. Its curved arc alone is 5π5\pi. Selecting diameter 1010 describes the same circular size; the tool halves that source exactly before using a radius-based formula.

Pcircle=2π(5)=10π,Psemicircle=π(5)+2(5)=10+5πP_{\mathrm{circle}}=2\pi(5)=10\pi,\qquad P_{\mathrm{semicircle}}=\pi(5)+2(5)=10+5\pi

Use the stated isosceles trapezoid assumption

Centered bases 88 and 1414 have horizontal offsets 33 at each equal leg. A perpendicular height 44 therefore gives two legs of length 55, making the perimeter 3232. Without the equal-leg assumption, the same bases and height can permit different slanted edges and different perimeters.

ℓ=42+(14−82)2=5,P=8+14+2(5)=32\ell=\sqrt{4^2+\left(\frac{14-8}{2}\right)^2}=5,\qquad P=8+14+2(5)=32

Apply a length conversion once

The default boundary of 40 cm40\,\mathrm{cm} becomes 2/5 m2/5\,\mathrm{m}. Its source dimensions do not change. A regular hexagon with side 55 has perimeter 3030, while a stadium with straight sections 1010 and radius 33 has perimeter 20+6π20+6\pi. Each expression represents length and uses a single conversion factor.

40 cm=25 m,Pregular=6(5)=30,Pstadium=2(10)+2π(3)=20+6π40\,\mathrm{cm}=\frac25\,\mathrm{m},\qquad P_{\mathrm{regular}}=6(5)=30,\qquad P_{\mathrm{stadium}}=2(10)+2\pi(3)=20+6\pi
Why Users Love This Tool

Why a complete boundary record is useful

The formula carries its assumptions

  • A right triangle uses perpendicular legs; a parallelogram uses adjacent edge lengths rather than perpendicular height.
  • A regular polygon requires equal sides, while an arbitrary side list must include every edge and pass the closure inequality.
  • The isosceles-trapezoid method states its equal-leg assumption instead of claiming that bases and height fix a general trapezoid.
  • Collapsed boundaries explain repeated coincident edges, and omitted diagrams never replace an exact answer with invented geometry.

The answer can be checked and reused

  • Exact rational input strings survive addition, root construction and physical length conversion.
  • Symbolic pi and radical terms remain distinct from certified, separately rounded numerical views.
  • The output-to-input component check must have zero residual, giving an inspectable record of the length multiplier.
  • Sharing excludes inactive fields, while copying, complete CSV and printing preserve the active source record and interpretation.
Perfect For

Boundary reasoning for learning and measured plans

Students connecting a diagram to its formula

Trace the whole boundary before calculating. A semicircle is a useful example because its arc alone is shorter than its closed perimeter. Compare a rectangle with a parallelogram whose adjacent side lengths are the same; their perimeter agrees even though the displayed angles and areas differ. Exact fractional and radical examples show how rounding an intermediate edge can change a final numerical result.

Teachers preparing reproducible geometry examples

Retain the source measurements, selected method and ordered LaTeX working in a shared or printed calculation. Use the full component table to distinguish straight lengths, circular coefficients and squared quantities under a root. The native diagram uses equal horizontal and vertical units, identifies representative angles and treats collapsed cases openly. A side list can demonstrate why knowing edge lengths alone does not determine a unique polygon.

People estimating idealized edge distance

Use a justified geometric outline to estimate the distance around a border, frame, track or flat plan. Enter compatible measurements in one common unit, then convert the result into a useful length scale. Check the physical dimensions and the boundaries you intend to include. Openings, multiple separate loops, joints, overlaps, installation waste and purchasing increments require additional planning rather than being silently included in a geometric perimeter.

How It Works

How it works in three quick steps.

1

Choose the outline and identify its measurements

Select the shape whose complete boundary you want to measure. Enter nonnegative decimals, scientific sources or integer fractions in one common length unit. Read the dimension labels carefully: a right triangle uses perpendicular legs, a parallelogram uses adjacent side lengths, and the trapezoid method specifically assumes equal legs. A polygon side list needs every boundary edge, not merely the longest and shortest measurements.

2

Follow the formula and exact boundary components

Inspect the selected perimeter formula, active source record and ordered working. Straight edges are added exactly. Curved pieces retain a symbolic coefficient of pi, while right-triangle and isosceles-trapezoid methods can require a nonnegative square root. The decimal is a separately checked view. Triangle and polygon closure inequalities reject impossible dimensions before a usable boundary length is presented.

3

Convert the length and preserve the interpretation

Choose an output length unit and inspect the exact multiplier and zero component residual. A perimeter is a length, so the scale factor is applied once. Use the diagram caption to understand representative angles or collapsed boundaries. Copy the working, share the active sources, download every conversion as CSV or print the result to a PDF. Keep the measurement assumptions with the answer.

Download & Print

Keep the boundary definition with its result

Download a complete calculation as CSV

The CSV retains the active dimensions, selected shape, circular input convention, exact straight and curved components, conversion multiplier, final symbolic expression and zero component residual. It also includes all seventeen physical output conversions when their on-screen table is hidden. Exact large digits remain available in the file. Keep the method and unit labels with the exported values so a length is not later reused as an area or an incomplete arc.

Print the result or save a readable PDF

The print layout removes editing controls and retains the selected result, available boundary diagram, ordered mathematical steps, active source record and complete tables. Use the browser's Save as PDF destination and choose a practical paper orientation. Continuing tables repeat their headings and keep row contents together. Very long numerical expressions use a clear notice directing you to the complete CSV rather than silently clipping exact digits.

Share the active geometry problem

The shared fragment preserves the selected method, active dimensions, radius or diameter convention, input and output units, rounded precision and visibility choices. Hidden shape sources and inactive circular fields are excluded, while malformed, duplicate and unknown imported fields are rejected. Local editor switching still preserves earlier inputs. Plain copying provides readable mathematics outside the visual renderer, along with the same component interpretation and boundary limitations.

FAQ

Frequently Asked Questions

Which perimeter methods can I use?
The tool includes rectangle, square, three-side triangle, right triangle from two perpendicular legs, circle, parallelogram from adjacent sides, rhombus from a side, isosceles trapezoid, regular polygon, polygon side list, semicircle and stadium. These twelve methods identify different boundary assumptions. Only the selected method affects the answer, while local switching preserves earlier measurements. An arbitrary irregular outline still requires a complete side list or another justified decomposition.
How does perimeter differ from area?
Perimeter measures distance along a boundary, whereas area measures enclosed coverage. A rectangle uses P=2(l+w)P=2(l+w) for its perimeter and A=lwA=lw for its area. Their units therefore differ: a perimeter might be measured in centimeters, while an area uses square centimeters. Changing a length unit applies its conversion factor once to perimeter. The calculator keeps this distinction visible rather than attaching square units to an edge-distance result.
Does a semicircle perimeter include the diameter?
Yes. The full closed boundary contains the curved half-circumference and the straight diameter, giving P=πr+2rP=\pi r+2r. If you need only the semicircular arc, that length is πr\pi r instead. The selected method is explicitly labeled arc and diameter, and the diagram draws both pieces. Radius and diameter entry modes remain separate, so a diameter is halved before the radius-based formula is evaluated.
Which dimensions define the stadium shape?
A stadium consists of two parallel straight sections joined by two semicircles of equal radius. Enter the length of each straight section and the circular radius or diameter. The complete boundary is P=2L+2πrP=2L+2\pi r. The straight-section input excludes the rounded ends; entering the overall end-to-end length there would overcount. A zero straight section reduces to a circle. A zero radius is treated as an explicitly collapsed limiting traversal.
Why does the trapezoid option say isosceles?
Two parallel bases and a perpendicular height do not determine the legs of a general trapezoid. The calculator assumes equal legs and centers one base over the other. Each leg then has length h2+((b−a)/2)2\sqrt{h^2+((b-a)/2)^2}, which makes the perimeter fully determined. Equal bases produce a rectangle under this centered convention. For a general trapezoid with four measured edges, use the polygon side-list method and include all four lengths.
Are impossible triangles and polygon side lists checked?
Yes. A longest side greater than the sum of all the other sides cannot close a polygon and is rejected using exact rational comparisons. The three-side triangle has the corresponding triangle inequalities. Equality is allowed as an explicitly collapsed boundary case. A valid inequality does not establish the order, angles or absence of self-intersections of an arbitrary side list, so the calculator does not invent a unique diagram from those lengths.
Can I enter fractions, scientific notation or zero?
Nonnegative finite decimals, scientific e notation and integer fractions with nonzero denominators are accepted. Sources support sixty significant decimal digits or sixty digits per fraction integer, one hundred eighty characters per length and exponents from negative one hundred through positive one hundred. Polygon lists support three through fifty lengths. Zero dimensions are retained when consistent, with a warning that a collapsed formula can count coincident edges more than once.
Are pi and square-root results exact?
The symbolic answer retains its rational straight contribution, coefficient of pi and verified nonnegative radical. Unit conversion multiplies those components by exact rational ratios. Decimal views are separately checked using certified six-hundred-place pi and square-root bounds; both bounds must give the same requested rounded display. Common square factors are removed with bounded work, without promising complete factorization of arbitrary large integers. Changing decimal precision does not change the exact boundary expression.
Why do some shapes have no diagram or a representative angle?
Adjacent sides fix a parallelogram perimeter without fixing its angle, so the diagram identifies a compatible sixty-degree representative. A side list does not define a unique outline and has no invented polygon drawing. Dense regular polygons above one hundred sides and extremely thin positive shapes also omit their diagrams with a note. Numerical screen positions are approximate teaching aids; the exact source lengths and selected formula remain authoritative.
Can I save the result for fencing, trim or classroom work?
Copy the plain-text summary, share active dimensions and options, download CSV or print to a PDF. The record retains exact components, units, ordered steps and all seventeen physical length conversions, even if the visual conversion table is hidden. Practical ordering also needs allowances for openings, joints, overlap, waste, measurement uncertainty and packaging increments. Those purchasing decisions are separate from the idealized closed-boundary calculation provided here.
About This Tool

About this exact closed-boundary perimeter calculator

This perimeter calculator organizes boundary length around the measurements and assumptions that define a geometric outline. Its twelve methods include familiar polygons, right triangles, complete circular boundaries and shapes that combine straight and curved pieces. The semicircle method counts its diameter as well as its arc, and the stadium method distinguishes each straight section from overall end-to-end length. The isosceles-trapezoid method states the equal-leg assumption needed to derive its slanted edges from bases and height. An arbitrary polygon side list provides a checked sum without claiming that those lengths determine a unique drawing.

The calculation preserves numerical source strings rather than converting every dimension immediately to binary floating point. Rational straight contributions, symbolic pi coefficients and verified nonnegative radicals remain available in the exact answer. Certified rational intervals separately check the rounded numerical view, and exact physical ratios convert the full expression into another length unit. A component residual verifies the return to the original input-unit representation. These checks support a reproducible mathematical result, while the quality of a real measurement still depends on how its dimensions were obtained and interpreted.

Diagrams explain which boundary pieces are counted. They use equal display scales, identify a representative angle when adjacent side lengths leave one undetermined, and omit a misleading outline when dimensions are too thin or insufficient for a unique construction. A collapsed formula may count coincident edges as a limiting closed traversal, which differs from the length of the visible line's geometric union. Sharing, copying, complete CSV and native printing retain these distinctions with the active sources. Practical material ordering, irregular geography, multiple boundary loops and installation allowances require additional modeling beyond the single idealized shape selected here.

Editorial Transparency

Who maintains this page

Ownership and review

Written and maintained by the Toolarithm editorial team. No review date is shown without a maintained editorial record. No independent professional review is claimed.

Methodology

Equations are checked by substituting worked examples into the stated relationship and comparing the result with the interactive implementation.

Read the editorial methodology

Dates and sources

Review dates change only after a substantive method or content check.

Keep building

Explore more calculators

Calculators hub