Connect via MCP →

Enter Calculation

Formula

Advertisement

Results

Perimeter of the Square
20
units
Side length 5 units
Formula P = 4 × s

What Is the Perimeter of a Square?

The perimeter of a square is the total distance around its outer edge. Because a square has four sides that are all exactly the same length, the perimeter is simply four times the length of one side. This calculator gives you the perimeter instantly from a single measurement, making it handy for fencing, framing, trim, borders, and geometry homework.

Square with all four sides labeled s and equal-length tick marks
A square has four equal sides, each of length s.

How to Use This Calculator

Enter the length of one side of your square in the input box and the perimeter is calculated automatically. Use any unit of measurement you like — centimeters, meters, inches, or feet — and the result will be expressed in those same units. Keep your units consistent for an accurate answer.

The Formula Explained

The formula is $$P = 4 \times s$$ where P is the perimeter and s is the length of one side. Since a square's four sides are equal, you add \(s + s + s + s\), which simplifies to \(4 \times s\). This is one of the simplest perimeter formulas in geometry.

Advertisement
Square with the four sides highlighted and added together to show perimeter
The perimeter sums all four equal sides: \(s + s + s + s = 4s\).

Worked Example

Suppose a square has a side length of 7 meters. Plug it into the formula: $$P = 4 \times 7 = 28$$ The perimeter is 28 meters. If you needed to fence this square plot, you would require 28 meters of fencing.

FAQ

How is perimeter different from area? Perimeter measures the distance around the shape (a length), while area measures the surface inside it. For a square, area is \(s \times s\), while perimeter is \(4 \times s\).

Can I find the side from the perimeter? Yes. Rearrange the formula to \(s = P \div 4\). For example, a perimeter of 20 gives a side of 5.

What units does the answer use? The perimeter is given in the same units you entered for the side length. If you input meters, the result is in meters.

Last updated: