Area Calculator
BaharuArea calculator for 10 shapes: circle, rectangle, triangle (3 methods), trapezoid, ellipse, rhombus & more. Formula shown instantly.
Runs entirely in your browser. Nothing is uploaded.
Area calculator for 10 common geometric shapes
This area calculator covers 10 shapes: circle, rectangle, square, triangle (base-height, Heron's formula, or two-sides-angle), trapezoid, parallelogram, ellipse, sector, rhombus, and regular polygon. Select a shape from the menu, enter the required dimensions, and the area (and perimeter where applicable) updates in real time. The formula used is shown below the result so you can verify or adapt it.
All calculation runs locally in JavaScript — your measurements are never sent to a server. No account, no upload, no signup required. Works on desktop and mobile, and stays functional offline once the page has loaded.
Essential area formulas — a quick reference
The most-used area formulas: Circle: A = π × r². Rectangle: A = l × w. Square: A = s². Triangle (base/height): A = ½ × b × h. Triangle (Heron's): A = √[s(s−a)(s−b)(s−c)] where s = (a+b+c)/2. Trapezoid: A = ½ × (a+b) × h. Parallelogram: A = b × h. Ellipse: A = π × a × b. Sector: A = ½ × r² × θ (θ in radians). Rhombus: A = ½ × d₁ × d₂ (diagonals).
These formulas appear on every school syllabus from middle school through college geometry. Understanding which inputs are required — radius vs diameter, base vs side, height vs slant height — prevents the most common calculation errors. The labeled inputs in this tool remove that guesswork.
How to calculate square footage for flooring and rooms
The most common real-world use of rectangle area is calculating room square footage for flooring, carpeting, or painting. Measure the room in feet, multiply length by width, and that's your square footage. For an L-shaped room: split into two rectangles, calculate each, add them. For a room with a closet or alcove: add or subtract the sub-areas accordingly.
Flooring tip: always add 10% for waste from cuts and pattern matching. If your room is 180 sq ft, order 198 sq ft of flooring. For painting, divide wall area by the paint's coverage rate (typically 350–400 sq ft per gallon) to find how many gallons you need. Ceiling height × perimeter ÷ 400 = gallons of wall paint. This calculator handles the rectangle math instantly; the rest is arithmetic on the result.
Area vs. surface area — what's the difference?
Area refers to the flat, two-dimensional space inside a shape — a circle, triangle, or rectangle. Surface area is the total area of all faces of a three-dimensional object — a sphere, cube, or cylinder. For a sphere: SA = 4πr². For a cube with side s: SA = 6s². For a cylinder: SA = 2πr² + 2πrh (two circles plus the lateral surface).
This tool calculates flat 2D area only. For 3D surface area, dedicated calculators exist. The most practically important surface area calculations are painting a wall (flat area), wrapping a box (surface area of a rectangular prism = 2(lw + lh + wh)), and tiling a curved surface. Volume is a separate calculation again — a pool requires volume (length × width × depth), not area.
Comparing this to Wolfram Alpha, Google, and GeoGebra
Wolfram Alpha handles area queries via natural language and is accurate, but returns a single answer with minimal explanation of which inputs it used. Google's calculator handles simple cases (type 'area of circle radius 5' in search) but doesn't support shape switching or persistent labeled fields. GeoGebra is a full geometry suite — powerful for geometric construction but overkill for a quick area lookup.
This tool is built for speed: pick the shape, fill in the labeled fields, get area and perimeter instantly. The formula is displayed so you can check the work. No ads on the tool page, no login required, and no data collected. For classroom use, the formula display makes it appropriate for checking homework without just getting a black-box answer — students can see exactly which formula applied.
Where the formulas come from — derivation intuition
The area of a circle formula A = πr² is often treated as a fact to memorize, but it has an elegant informal proof. Slice a circle into a large number of thin pie sectors, then rearrange those sectors alternating point-up and point-down into a near-rectangle. The width of that rectangle approaches half the circumference (πr) and the height approaches the radius (r), giving area = πr × r = πr². The more sectors you cut, the closer the rearrangement gets to a perfect rectangle — this is the intuition behind integration in calculus.
The triangle formula A = ½ × base × height follows directly from the rectangle. Any triangle can be enclosed in a rectangle of the same base and height; the triangle always occupies exactly half of that rectangle's area. You can verify this by cutting any triangle in two along the altitude and flipping the pieces to form a rectangle. The factor of ½ is therefore not an arbitrary constant but a geometric necessity.
Heron's formula — A = √[s(s−a)(s−b)(s−c)] where s is the semi-perimeter — solves the harder problem of finding area when only the three side lengths are known. Its derivation combines the law of cosines (to express the altitude in terms of the sides) with algebraic factoring, ultimately collapsing into the compact radical form. In practice Heron's formula is indispensable for surveying and structural engineering where measuring a perpendicular height is impossible but all three sides are accessible.
Area units and why they scale by the square
A common source of error is forgetting that area units scale by the square of the length unit, not linearly. One metre equals 100 centimetres, but one square metre equals 10,000 square centimetres (100 × 100), not 100. Similarly, 1 km² = 1,000,000 m², and 1 ft² = 144 in². When converting, always square the linear conversion factor: to go from m² to cm², multiply by 100² = 10,000.
In land measurement, the acre is the dominant unit in the United States and United Kingdom. One acre equals exactly 43,560 square feet — a figure that traces back to the medieval definition of the amount of land one man with one ox could plough in a day (a furlong × a chain: 660 ft × 66 ft). A hectare is the metric equivalent used globally in agriculture and real-estate: 1 hectare = 10,000 m² ≈ 2.471 acres. Large US land tracts use the township-and-range survey system: a section is 1 square mile (640 acres), and a township is 36 sections (36 square miles).
For everyday construction, the key conversions are: 1 m² = 10.764 ft² and 1 ft² = 0.0929 m². Paint coverage is typically rated in ft² or m² per litre, so matching your room area to the right unit is essential before ordering. This calculator is unit-agnostic — results are in whatever squared unit your inputs used — so convert your raw measurements first if consistency matters.
Handling irregular shapes: decomposition, the shoelace formula, and GIS
No formula directly computes the area of an arbitrary irregular shape, but the decomposition method solves most practical cases. Break the irregular region into non-overlapping standard shapes — rectangles, right triangles, circles or semicircles — that together tile the whole area. Compute each sub-area individually and sum them. An L-shaped room, for example, splits into two rectangles; a room with a bay window adds a rectangle or semicircle to the main rectangle. The decomposition method works as long as the boundary can be approximated by straight lines and curves.
When you have a polygon defined by a list of vertex coordinates (x₁,y₁), (x₂,y₂), …, (xₙ,yₙ), the shoelace formula gives the exact area without breaking the polygon into triangles manually: A = ½ |Σ(xᵢ·yᵢ₊₁ − xᵢ₊₁·yᵢ)|, where the last vertex wraps back to the first. The formula works for any simple (non-self-intersecting) polygon regardless of convexity. Surveyors and GIS analysts use it constantly — modern cadastral software computes parcel area this way from GPS-derived boundary coordinates.
For truly irregular curved boundaries — a pond, a field with meandering edges, a watershed — neither decomposition nor the shoelace formula is practical by hand. Mechanical planimeters historically traced the boundary and returned the enclosed area directly from gear rotations. Today, GIS tools (QGIS, ArcGIS, Google Earth Engine) compute area from digitised or GPS-traced polygons in any coordinate system, accounting for map projection distortion. For most construction and interior-design tasks, decomposition into rectangles and triangles is precise enough.
Composite shapes and real-world area problems
Composite shape problems combine addition and subtraction of areas. A circular pool (radius 3 m) set inside a rectangular deck (10 m × 8 m) leaves a surrounding area of 80 − π × 3² ≈ 80 − 28.27 = 51.73 m² for tiling. An annulus (ring) between two concentric circles with outer radius R and inner radius r has area π(R² − r²). Knowing which regions to add and which to subtract is the core skill; the individual formulas are just arithmetic once the decomposition is clear.
In flooring and tiling, the composite approach also handles waste planning. Calculate the net room area (gross floor minus fixed obstacles like pillars or hearths), then add the waste factor: 10% for straight-lay tile or wood, 15% for diagonal tile lay (more cuts at the edges), and up to 15–20% for natural stone with variable cuts. Multiply net area by 1.10 or 1.15 to get the quantity to order. For paint, measure each wall's area (height × width), sum all walls, then subtract doors (roughly 20 ft² each) and windows (roughly 15 ft² each). Divide by the paint's stated coverage — typically 350–400 ft² per gallon — and round up to the nearest whole gallon.
In real-estate and construction, gross floor area (GFA) includes all enclosed space measured to the exterior face of walls, while net floor area (NFA) excludes walls, columns, and non-usable spaces. The difference matters significantly in commercial leasing: a building with a GFA of 10,000 ft² may have an NFA of only 8,500 ft² once structural elements are excluded, and tenants pay rent on NFA. Residential listings in the US typically report the conditioned living area, which excludes garages, unfinished basements, and exterior walls — so two homes with identical external footprints can have very different listed square footages depending on finishing and measurement convention.
Frequently asked questions
How do you calculate the area of a circle?
Area of a circle = π × r², where r is the radius (half the diameter). If you know the diameter instead, r = diameter ÷ 2. Example: a circle with radius 7 cm has area = π × 7² = π × 49 ≈ 153.94 cm². Using the diameter directly: A = π × (d/2)² = π × d² ÷ 4. This calculator accepts either radius or diameter and shows the exact formula used. Wolfram Alpha can also compute this from a natural-language query, but this tool has labeled inputs you can reuse without retyping the query.
What is the formula for the area of a triangle?
The most common triangle area formula is A = ½ × base × height, where height is the perpendicular distance from the base to the opposite vertex. If you don't know the height but know all three sides (a, b, c), use Heron's formula: A = √[s(s−a)(s−b)(s−c)], where s = (a+b+c)/2 (the semi-perimeter). If you know two sides and the included angle: A = ½ × a × b × sin(C). This calculator supports all three methods — pick whichever inputs you have available.
How do you find the area of a rectangle?
Area of a rectangle = length × width. For a square (equal sides), A = side². Example: a 12 m × 8 m rectangle has area = 96 m². This is the same calculation used for room floor area: measure length and width in feet or meters, multiply, and get square footage or square meters. The calculator also shows the perimeter (2 × (length + width)) alongside the area, which is useful when you need both for fencing or framing.
What is the area of a trapezoid?
Area of a trapezoid = ½ × (a + b) × h, where a and b are the two parallel sides (called bases) and h is the perpendicular height between them. Example: a trapezoid with parallel sides 8 cm and 12 cm, height 5 cm: A = ½ × (8 + 12) × 5 = 50 cm². A parallelogram is a special case where both pairs of opposite sides are parallel — its area = base × height. This calculator handles both shapes separately with labeled inputs for each.
How do you calculate the area of an ellipse?
Area of an ellipse = π × a × b, where a is the semi-major axis (half the longest diameter) and b is the semi-minor axis (half the shortest diameter). A circle is a special ellipse where a = b = r, giving the familiar π × r². Example: an ellipse with semi-axes 6 and 4 has area = π × 6 × 4 = 24π ≈ 75.40 sq units. The ellipse is less intuitive than a circle but appears in engineering and astronomy — this calculator handles it the same way as any other shape.
What is the difference between area and perimeter?
Area measures the two-dimensional space enclosed by a shape — in square units (cm², m², ft²). Perimeter measures the total length of the boundary — in linear units (cm, m, ft). For a rectangle: area = length × width (square units), perimeter = 2 × (length + width) (linear units). You need area for flooring, painting, or land calculations. You need perimeter for fencing, framing, or trimming. This calculator shows both values together so you don't need a second tool.
How do I calculate room area or square footage?
For a rectangular room, area in square feet = length (ft) × width (ft). If measurements are in feet and inches, convert to decimal feet first: 12 ft 6 in = 12.5 ft. For an L-shaped room, divide it into two rectangles, calculate each area, and add them. For flooring, add 10% for cuts and waste: if room area = 150 sq ft, order 165 sq ft. Enter room dimensions here and get the square footage in seconds — Google's built-in calculator can also do it from a search query, but this tool keeps inputs labeled for repeat use.
How do you calculate the area of an irregular shape?
Break the irregular shape into standard shapes (rectangles, triangles, circles) that together cover it. Calculate each sub-area and add them. If you have the vertex coordinates of a polygon, use the shoelace formula: A = ½ |Σ(xᵢ × yᵢ₊₁ − xᵢ₊₁ × yᵢ)|. For real-world land surveying and complex irregular shapes, GPS-enabled tools or CAD software like AutoCAD are more practical. This tool handles the 10 most common standard shapes for quick everyday calculations.
Is this better than Wolfram Alpha or Google for area calculations?
Wolfram Alpha computes area from a natural-language query ('area of triangle with base 5 and height 8') and is excellent for one-off questions. Google's calculator handles basic shapes directly in search. Neither shows a clean step-by-step formula for every shape variant, and both require typing the full query each time. This tool offers a dedicated UI for each shape with labeled input fields, the formula displayed below the result, and instant re-calculation as you type — faster when you're comparing multiple shapes or doing repeated calculations.
What units does this area calculator support?
The calculator is unit-agnostic — you enter numbers and the result is in the square of whatever unit you used. Enter dimensions in meters → get area in m². Enter in feet → get area in ft² (square feet). Enter in centimeters → get area in cm². The tool doesn't convert between units; use UtiloKit's unit converter for that. Common reference: 1 square foot = 0.0929 m²; 1 acre = 43,560 sq ft = 4,047 m²; 1 hectare = 10,000 m² = 2.47 acres.
Does this area calculator work on mobile — iPhone and Android?
Yes. All inputs trigger the numeric keyboard on mobile automatically. The shape selector and result update instantly as you type. Works in Safari (iPhone), Chrome (Android), and all modern mobile browsers without any app install. Useful for quick on-site calculations — measure a room or piece of land, enter the dimensions on your phone, and get the area in seconds. No download, no account, no upload required.
Related tools
Lihat semua alatSpeed Distance Time Calculator
Solve for speed, distance, or time — enter any two values and the third is calculated. Supports km/h, mph, m/s and mixed units.
GCF & LCM Calculator
Find GCF (greatest common factor) and LCM (least common multiple) for up to 10 numbers. Euclidean algorithm steps & prime factorization shown.
Penukar Unit
Tukar panjang, berat, suhu, luas, isi padu, kelajuan, masa dan saiz data.
Penukar Cap Masa Unix
Tukar masa epoch kepada tarikh dan sebaliknya, dengan masa semasa langsung dan ISO 8601.
Penukar Asas Nombor
Tukar antara perduaan, oktal, perpuluhan, heksadesimal dan sebarang asas dari 2 hingga 36.
Penukar Angka Roman
Tukar nombor kepada angka Roman dan sebaliknya, dengan pengesahan.