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 automated 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.
Linear feet
- Linear feet = square feet × 12 ÷ board face width in inches. Waste defaults to 10% and is added on top; boards are rounded up to whole pieces.
- Use the actual width: a dry, planed 1 × 6 or 2 × 6 is 5 1/2 in wide (American Softwood Lumber Standard dressed sizes). For decking add the gap; for siding use the exposed face.
Air conditioner size (BTU)
- Capacity comes from the ENERGY STAR room air conditioner sizing chart, which assumes an 8 ft ceiling: 5,000 BTU per hour for 100 up to 150 sq ft, rising to 34,000 BTU for 2,000 up to 2,500 sq ft. A size exactly on a row boundary takes the larger row.
- Adjustments from the same page: −10% for a heavily shaded room, +10% for a very sunny room, +600 BTU for each regular occupant over two, +4,000 BTU for a kitchen. The percentage applies to the chart value; the additions come after.
- 1 ton of cooling = 12,000 BTU per hour.
- Below 100 sq ft or from 2,500 sq ft the calculator gives no number: that is outside the chart, and whole-house systems need a load calculation (ACCA Manual J).
Siding
- Area = walls (perimeter × height, or each wall as a rectangle) + gables (base × height ÷ 2) − openings you subtract. Waste defaults to 10% and is added on top.
- 1 square of siding = 100 sq ft. Squares are shown with two decimals; round up when you order.
Insulation
- Area to insulate = the areas you enter, plus any waste you type (default 0%). Bags or packs = area ÷ the coverage you type from the label, rounded up.
- The R-value table is from ENERGY STAR, recommended home insulation R-values, which is based on the 2021 IECC. Notes on compressed and loose-fill insulation are from the U.S. Department of Energy.
Wallpaper
- Drops = length of walls × 12 ÷ roll width in inches, rounded up. One drop = wall height + pattern repeat + 4 in trimming. Drops per roll = roll length ÷ one drop, rounded down. Rolls = drops ÷ drops per roll, rounded up. Doors and windows are not taken off.
- The starting roll size, 52 cm × 10 m (about 20.5 in × 33 ft), is a common European roll (Wallpaper, Wikipedia). The 4 in trimming allowance is a default you can change by editing the drop; it is not a standard.