How the Square Footage Calculator works
Every formula, constant and rounding rule the calculator uses, and what it does not do. The math is in one file (core.js) with 55 tests whose expected numbers were worked out by hand.
Lengths
- Every length is turned into feet before anything is multiplied. 1 ft = 0.3048 m exactly (the international foot, defined in 1959); 1 in = 1/12 ft; 1 yd = 3 ft; 1 m = 1 ÷ 0.3048 ft; 1 cm = 1 ÷ 30.48 ft; 1 mm = 1 ÷ 304.8 ft.
- In feet you can type decimals (
12.5), fractions (12 1/2), feet and inches (12'6",12' 6 1/2",12 ft 6 in) or inches alone (30"). Feet + inches gives a separate box for each. - Anything that is not a length (a word, a negative number,
1/0) is shown as incomplete and left out of the total. It is never counted as zero. A typed0is a real zero.
Shapes
| Shape | Area |
|---|---|
| Rectangle | length × width |
| L-shape | total length × total width − cut-out length × cut-out width (the cut-out must be shorter and narrower than the whole) |
| Triangle (base and height) | base × height ÷ 2 |
| Triangle (3 sides) | Heron’s formula: s = (a + b + c) ÷ 2, area = √(s(s − a)(s − b)(s − c)); sides that cannot close a triangle are an error |
| Circle | π × (diameter ÷ 2)² |
| Half circle | π × (diameter ÷ 2)² ÷ 2 |
| Trapezoid | (parallel side 1 + parallel side 2) ÷ 2 × height |
| Oval | π × length × width ÷ 4 |
| Room walls | 2 × (room length + room width) × wall height |
- Quantity multiplies an area (for example 2 identical windows). Subtract takes an area off the total. If the subtracted areas are larger than the added ones, the total is shown as 0 with a warning, never as a negative area.
Area units
| Unit | Square feet |
|---|---|
| Square inch | 1/144 |
| Square yard | 9 |
| Square meter | 1 ÷ 0.09290304 = 10.7639104 |
| Acre | 43,560 |
| Hectare | 10,000 m² = 107,639.104 |
Results are shown rounded (2 decimals for most units, more for acres and hectares); the math keeps full precision until the end.
Materials
Waste is added on top of the measured area before anything is counted. Anything you buy whole (boxes, tiles, sheets, bags, bundles, gallons, pallets) is rounded up. Every default below can be changed in the calculator.
| Use | Default waste | How it is counted |
|---|---|---|
| Flooring | 10% | area + waste; boxes = that ÷ square feet per box (from the box label); cost = boxes × box size × price per sq ft |
| Tile | 10% | tiles = (area + waste) ÷ (tile width × tile length ÷ 144); boxes = tiles ÷ tiles per box |
| Carpet | 10% | square yards = (area + waste) ÷ 9; cost per square yard |
| Paint | 0% | wall area − 21 sq ft per door (3 × 7 ft) − 15 sq ft per window (3 × 5 ft); gallons = wall area × coats ÷ coverage (default 350 sq ft per gallon, 2 coats) |
| Drywall | 10% | sheets = (area + waste) ÷ sheet area (4 × 8 = 32, 4 × 10 = 40, 4 × 12 = 48, 4.5 × 12 = 54 sq ft) |
| Concrete | 10% | cubic yards = area × thickness (in) ÷ 12 ÷ 27, default 4 in; bags at 0.6 cu ft per 80 lb, 0.45 per 60 lb, 0.3 per 40 lb bag |
| Mulch, gravel or soil | 0% | cubic yards = area × depth (in) ÷ 324, default 3 in; bags = cubic feet ÷ bag size (default 2 cu ft) |
| Sod | 5% | area + waste; pallets = that ÷ square feet per pallet (from your supplier) |
| Roofing | 10% | roof area = footprint × √(1 + (pitch ÷ 12)²); squares = (roof area + waste) ÷ 100; bundles = squares × bundles per square (default 3) |
Where the defaults come from:
- Paint coverage: most interior wall paints state about 250 to 400 sq ft per gallon per coat; 350 is a middle value. The can is the authority.
- Concrete bag yields: typical manufacturer figures for premixed bags. The bag is the authority.
- Waste allowances: common installer rules of thumb (5% to 10% for straight floors, 15% to 20% for diagonal and herringbone layouts, about 10% for simple roofs and more for complex ones). Product instructions come first.
- Bundles per square: 3 for most standard 3-tab and many architectural shingles; heavy shingles can need 4 or 5.
Price per square foot
- Price per square foot = price ÷ square feet.
- For rent: a monthly rent gives a monthly price per square foot, × 12 for the yearly figure; a yearly rent ÷ 12 for the monthly one. Commercial space is usually quoted per square foot per year.
House square footage
The house page summarises the ANSI Z765 standard (finished area measured from the outside walls, ceilings of at least 7 ft, nothing under 5 ft, basements reported separately, garages excluded). It is a summary from public fact sheets, not the standard itself; appraisers use the full text.
What the calculator does not do
- It does not measure from a map or photo, and it cannot look up a house by address.
- It does not know your product: box sizes, coverage and yields vary, so enter the numbers on the label.
- Prices are whatever you type; there is no price data.
- Local building codes and measurement rules for sales or leases can differ from the rules of thumb here.
Sources
- The foot: 1 ft = 0.3048 m exactly, the international foot used in the US since the U.S. survey foot was retired at the end of 2022. NIST: U.S. survey foot
- House square footage: ANSI Z765, the American National Standard for measuring single-family homes, published by Home Innovation Research Labs. The house page summarises it; it is not the text.
- Smallest habitable room: International Residential Code, section R304 (70 sq ft, 7 ft in every direction), as adopted and amended by each state.
- Paint coverage, concrete bag yields, box and pallet sizes: the manufacturer's label for the product you buy.
- Area formulas (rectangle, triangle, Heron's formula, circle, trapezoid, ellipse): standard geometry.
Privacy
All math runs in your browser. Nothing you type is sent to a server. The last calculation on each page is saved in your browser’s local storage (keys starting with sfc:). A shared link stores the calculation after the # in the link, which browsers do not send to the server.