CalcUnit Logo
Math

How to Calculate the Area of any 2D Shape

Learn the essential geometric formulas to calculate the area of squares, rectangles, triangles, and circles. Perfect for homework or home renovation projects.

CEBy CalcUnit Math ExpertsPublished 8 min read
How to Calculate the Area of any 2D Shape

Calculate the exact square footage of any room or shape instantly using our Area Calculator, or learn the fundamental geometry formulas below.

Area is the amount of 2D space inside the boundary of a flat object. Whether you are buying paint for a bedroom, laying sod in a backyard, or doing middle school math homework, knowing how to calculate area is an essential life skill.

Because shapes vary drastically, mathematicians have developed specific formulas for each geometric polygon.

Squares and Rectangles

The most common and easiest shapes to calculate. Because their corners are perfect 90-degree right angles, you only need two measurements.

Formula: Area = Length × Width (or Base × Height)

Example: You want to carpet a bedroom that is 12 feet long and 10 feet wide. Area = 12 ft × 10 ft = 120 square feet.

A square is just a rectangle with equal sides, so its formula shortens to Area = side². A square patio with 7-foot sides covers 7 × 7 = 49 square feet.

Notice the units: feet × feet gives square feet. If your answer's units are not squared, something went wrong.

Run your own numbers

Enter your own numbers and see the result instantly — free, no signup.

Open the Calculator →

Triangles

A triangle is mathematically exactly half of a rectangle. If you draw a diagonal line across a rectangle, you get two identical triangles.

Formula: Area = ½ × Base × Height

Example: A triangular sail on a boat has a base of 6 meters and a height of 8 meters. Area = 0.5 × 6 × 8 = 24 square meters.

(Note: The 'Height' must be the perpendicular distance from the base to the opposite point, not the length of the slanted side).

Any side can serve as the base — as long as you pair it with the height measured at 90 degrees to that side. Our Triangle Area Calculator handles the side-and-angle variations.

Parallelograms and Trapezoids

These two shapes extend the same ideas, and both appear constantly in land plots and design work.

Parallelograms

A parallelogram is a rectangle that leans. Its area still equals base × height, using the perpendicular height, not the slanted side length.

Example: Base 9 cm, vertical height 6 cm. Area = 9 × 6 = 54 square centimeters.

Trapezoids

A trapezoid has one pair of parallel sides, usually of different lengths. Average those two lengths, then multiply by the height.

Formula: Area = ½ × (a + b) × h

Example: Parallel sides of 8 feet and 12 feet, separated by 5 feet. Area = 0.5 × (8 + 12) × 5 = 0.5 × 20 × 5 = 50 square feet.

Circles

Circles are unique because they don't have straight sides. To calculate the area of a circle, we must use the mathematical constant Pi (π), which is approximately 3.14159.

Formula: Area = π × r² Where r is the radius (the distance from the exact center of the circle to the outer edge).

Example: You are building a circular patio with a radius of 5 feet.

  1. Square the radius: 5 × 5 = 25
  2. Multiply by Pi: 3.14159 × 25 = 78.54 Area = 78.54 square feet.

The Diameter Trap

Real objects are usually measured across — the diameter. A round rug sold as "10 feet across" has a diameter of 10 and a radius of only 5.

Halve the diameter before squaring. Plugging 10 into the formula directly gives 314 square feet — four times the true area.

Sectors: Slices of a Circle

A sector is a pizza-slice portion of a circle. Its area is the same fraction of the full circle as its angle is of 360°.

Example: A 90° sector with radius 4 inches is one quarter of the circle. Area = 0.25 × π × 4² = 0.25 × 50.27 = 12.57 square inches.

Ellipses

An ellipse stretches a circle in one direction. Its formula replaces r² with the product of the two half-widths, called the semi-axes.

Formula: Area = π × a × b

Example: An oval garden with semi-axes of 6 feet and 4 feet. Area = 3.14159 × 6 × 4 = 75.40 square feet.

Irregular Shapes (The Deconstruction Method)

Very rarely is a room or a backyard a perfect square or a perfect circle. Real-world spaces are usually irregular polygons. To find the area of an irregular shape, you must use the "Deconstruction Method."

  1. Break it down: Draw imaginary lines to break the complex shape into standard, simple shapes (like breaking an L-shaped room into two separate rectangles).
  2. Calculate individually: Find the area of each of the smaller shapes using the standard formulas.
  3. Add them together: The total area is the sum of the individual areas.

Worked Example: The L-Shaped Room

A living room measures 16 feet by 12 feet overall, but a 6-by-4-foot corner is taken up by a stairwell. How much flooring does the room need?

Method 1 — Subtract the missing piece:

  • Full rectangle: 16 × 12 = 192 square feet
  • Missing corner: 6 × 4 = 24 square feet
  • Floor area: 192 − 24 = 168 square feet

Method 2 — Split into two rectangles:

  • Main block: 16 × 8 = 128 square feet
  • Remaining strip: 10 × 4 = 40 square feet
  • Total: 128 + 40 = 168 square feet

Both methods agreeing is your built-in error check. When two decompositions give different answers, a measurement was copied wrong.

Measuring Tips for Real Rooms

Formulas are exact; tape measures are not. A few habits keep the inputs honest.

Measure twice, in different spots. Old houses rarely have perfectly parallel walls. If the two ends of a room differ, use the larger measurement for material orders.

Sketch before you calculate. A rough drawing with dimensions labeled prevents the classic error of multiplying the same wall twice.

Decide about closets and hallways upfront. Whether they are in or out changes the total by a room-sized amount, and discovering it mid-order is expensive.

Record in one unit. Write every measurement in decimal feet (10 feet 6 inches = 10.5) the moment you take it. Mixed notation invites conversion slips later.

Converting Between Area Units

Area conversions square the linear factor — the step everyone forgets.

  • Square feet to square inches: multiply by 144 (12²). One square foot holds 144 square inches.
  • Square feet to square yards: divide by 9 (3²). Carpet is often sold by the yard: 120 square feet = 120 / 9 ≈ 13.3 square yards.
  • Square feet to acres: divide by 43,560. A 5,000-square-foot lot is 5,000 / 43,560 ≈ 0.11 acres.

If you need the boundary length as well — fencing, baseboards, edging — that is perimeter, handled by our Perimeter Calculator.

Ordering Materials: Add a Waste Margin

Calculated area is the net need. Real projects waste material to cuts, pattern matching, and mistakes.

A common practice is to order 5–10% extra flooring or tile. For the 168-square-foot room above, 10% extra means ordering about 185 square feet.

Paint works similarly. One gallon typically covers around 350 square feet per coat on smooth walls, so two coats over 168 square feet of wall area needs roughly a gallon — with texture and dark colors pushing the need higher.

Rounding up feels wasteful until a project stalls one board short. The margin is cheaper than a second delivery.

Common Mistakes

  • Squaring the diameter. Always convert diameter to radius first; the error multiplies your answer by four.
  • Using the slanted side as height. Heights in area formulas are always perpendicular distances.
  • Forgetting the ½ in triangles. A triangle is half its bounding rectangle, every time.
  • Mixing units mid-problem. Convert inches to feet (or the reverse) before multiplying, not after.
  • Reporting linear units. An answer in "feet" instead of "square feet" signals a missed multiplication.

FAQ

What is the difference between Area and Perimeter? Area measures the flat space inside a shape (measured in square units). Perimeter measures the length of the outside boundary or fence around the shape (measured in linear units).

How do I calculate the area of a room if the measurements are in inches and feet? You must convert all measurements to a single unit before multiplying. A room that is 10 feet 6 inches by 12 feet must be calculated as 10.5 ft × 12.0 ft to get an accurate square footage reading.

How do I handle a room with a closet or alcove? Treat it as its own small rectangle and add it (for an alcove) or subtract it (for space you will not floor). This is the deconstruction method applied to real rooms, and it works for bay windows and kitchen islands too.

What is a hectare? A hectare is a metric land unit equal to 10,000 square meters — a square 100 meters on each side. It equals about 2.47 acres. Outside the US, land and farm sizes are usually quoted in hectares.


Don't buy too much paint or flooring! Calculate precise square footage for any complex shape using the CalcUnit Area Calculator.

NameHow to Calculate the Area of any 2D Shape
DescriptionLearn the essential geometric formulas to calculate the area of squares, rectangles, triangles, and circles. Perfect for homework or home renovation projects.
PublishedJune 12, 2026 · CalcUnit Math Experts
Filed undermath · area of rectangle calculator

Keep Reading

Decoding Antiquity: How to Read Roman Numerals
Math

Decoding Antiquity: How to Read Roman Numerals

Struggling to read the copyright date on a movie or the number of a Super Bowl? Learn the seven symbols and the subtractive rules of Roman Numerals.

Jun 12, 2026CalcUnit History Experts