Rectangle Calculator
Calculate the area and perimeter of a rectangle from its width and height.
About this calculator
A rectangle's area and perimeter are two of the most-used formulas in everyday measurement precisely because they're this simple: area is just width times height (A = wh), the number of unit squares that tile the shape, and perimeter is the total distance around the outside, twice the width plus twice the height (P = 2(w + h)). The two numbers answer genuinely different questions and don't move together in any fixed ratio — a long, narrow rectangle can have a small area but a large perimeter, while a rectangle closer to a square packs more area into the same amount of perimeter, which is why area-to-perimeter efficiency is a real consideration in fencing, framing, and floor-plan design. This calculator treats width and height as independent measurements with no assumption that one is larger than the other, so swapping the two values it produces the identical area and perimeter, just as a physical rectangle looks the same rotated ninety degrees.
A special case worth knowing: when width and height happen to be equal, the shape is technically a square, and while this calculator's formulas still compute correctly, a square-specific calculator will only ask for one measurement instead of two, since a square's single side length is all the information a symmetric shape actually carries. Both outputs assume perfectly straight sides and right-angle corners; a real-world rectangle measured slightly out of square will differ from the ideal computed here.
Inputs
Results
Area
12
How to Use This Calculator
- Enter the rectangle's width — the length of its horizontal sides.
- Enter the rectangle's height — the length of its vertical sides.
- Read the area, the space enclosed inside the rectangle.
- Read the perimeter, the total distance around all four sides.
How the result changes with Width
| Width | Area |
|---|---|
| 2 | 6 |
| 3 | 9 |
| 6 | 18 |
| 10 | 30 |
Engine last updated . Built by Paul Gunder, a software engineer, not a licensed financial, medical, or legal professional.
Frequently Asked Questions
What's the practical difference between area and perimeter for a rectangle?
Area measures the two-dimensional space enclosed by the rectangle — how much flooring, fabric, or paint you'd need to cover its surface. Perimeter measures the one-dimensional distance around its outside edge — how much fencing, trim, or border material you'd need to wrap it. The two don't scale together: a rectangle can be made longer and narrower while keeping the same area but increasing its perimeter substantially.
Does it matter which measurement I enter as width versus height?
No — area and perimeter are both symmetric in width and height, so swapping the two values gives identical results. The labels exist purely to help you keep track of which physical dimension is which when you're reading numbers off a real object; the math doesn't distinguish between them.
For a fixed perimeter, which rectangle encloses the most area?
A square — a rectangle with equal width and height — always encloses the most area for a given perimeter, and the more elongated a rectangle becomes for that same perimeter, the less area it holds. This is a useful rule of thumb when designing an enclosure with a fixed amount of fencing or trim material and wanting to maximize usable space inside it.
How do I convert this rectangle's area into a different unit, like square feet to square meters?
Enter width and height in whichever unit you have (feet, meters, inches), and the area comes out in that same unit squared and the perimeter in that same linear unit. To switch units afterward, multiply the area by the appropriate squared conversion factor — for example, multiply square feet by about 0.0929 to get square meters — since area conversions require squaring the linear conversion factor, not applying it once.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Perimeter Calculator
Calculate the perimeter of rectangles, circles (circumference), triangles, and regular polygons with any number of sides.
Geometry & MeasurementArea Calculator
Calculate the area and perimeter of common shapes — rectangle, circle, triangle, trapezoid, and ellipse.
Geometry & MeasurementParallelogram Calculator
Calculate parallelogram area and perimeter from base, height, and side length.
More in Math & Statistics.