skip to content

Search

Pure-front-end renovation takeoffs: waste & inline SVG

4 min read

How SqftPlan carries one multi-room floor plan across six renovation calculators using sessionStorage, US building-material rounding rules, and zero-dependency SVG schematics.

Area calculators on the web usually stop one step too early. Multiply 12 × 15 to get 180 sq ft, then leave the homeowner to figure out how many 20 sq ft flooring cartons, 4×8 drywall sheets, 12-foot carpet roll linear feet, or 350 sq ft/gal paint cans that number actually buys once waste, openings, and ceiling height enter the picture.

I built SqftPlan as a browser-only renovation takeoff workbench where one multi-room floor plan flows directly into material counts and 2026 US DIY-vs-pro installation budgets. The sq ft calculator is the starting room plan; everything underneath is pure TypeScript, sessionStorage, and inline JSX <svg> schematics with zero runtime backend cost.

One room plan across six tools

Remodeling a space is rarely a single isolated question. A homeowner measuring an L-shaped kitchen and hallway for flooring often wants to check drywall sheet counts or carpet pricing for the adjacent room without retyping dimensions.

Instead of a server session or account wall, SqftPlan persists the active room plan under one versioned sessionStorage key:

export const PROJECT_STORAGE_KEY = 'sqftplan.project.v1';
 
export type SharedProjectState = {
  version: 1;
  projectName: string;
  unit: 'ft' | 'in' | 'm';
  rooms: RoomBlock[];
  totalFloorSqft: number;
  estimatedPerimeterFt: number;
  ceilingHeightFt: number;
  updatedAt: number;
};

Each block in rooms carries an op: 'add' | 'subtract' flag so L-shapes, alcoves, closets, and kitchen island cutouts reduce cleanly to a single net floor area and perimeter estimate. Clicking a handoff button from the sq ft calculator opens any downstream material page pre-populated with that exact area, ready to calculate on first paint.

Real US material specs instead of raw square footage

Net square footage is only the input; hardware stores sell discrete packages with fixed dimensions and coverage rules:

  • Flooring cartons & layout waste: The flooring calculator separates 10% straight-lay waste from 15% diagonal or herringbone waste, rounds up to whole boxes (Math.ceil(orderSqft / sqFtPerBox)), and calculates underlayment rolls alongside transition strips.
  • 12-foot carpet rolls & square yards: Carpet pricing mixes square feet and square yards (1 sq yd = 9 sq ft), and standard US broadloom comes in 12-foot-wide rolls. The carpet installation cost calculator converts area into linear feet of 12 ft roll goods, tracks seam waste, and lets homeowners toggle between DIY materials-only and full pro installation (padding, tack strips, and old-carpet haul-away).
  • 4×8 vs. 4×12 drywall sheets: Wall area scales with perimeter × ceiling height minus standard openings (21 sq ft for a 3×7 door, 15 sq ft for a 3×5 window). The drywall installation cost calculator compares 32 sq ft (4×8) and 48 sq ft (4×12) sheet counts, then estimates joint compound buckets, tape rolls, and screws alongside Level 4 hanging/finishing labor.
  • Exterior siding coverage & coat counts: Paint coverage depends on surface texture and primer needs. The exterior house paint cost calculator applies a configurable coverage rate (defaulting to 350 sq ft/gal) across coats, deducts windows and garage doors, and splits DIY paint/supplies from pro prep and spray/roll labor.
  • Three-wall alcove & walk-in showers: Tile takeoffs fail most often when homeowners forget to subtract a shower niche or add a built-in bench. The shower tile calculator models back wall, two side walls, optional floor/ceiling surfaces, and opening deductions separately, then rounds wall tiles, floor mosaics, thinset bags, and grout into a single copyable shopping list.

Zero-dependency inline SVG schematics

Every calculator renders a live architectural schematic directly in JSX <svg> — a proportional multi-room floor plan on the homepage, a three-wall unfolded shower diagram for tile, a 12 ft roll layout for carpet, and wall-elevation deduction diagrams for drywall and exterior paint.

Keeping the visuals in plain SVG instead of a charting library avoids bundle bloat and hydration layout shift. Every schematic scales deterministically from the pure calculation output in src/lib/sqftplan.ts, stays crisp on retina displays, and requires no canvas or WebGL context.

Honest boundaries

A browser takeoff calculator is a planning baseline, not a stamped contractor bid. Regional labor rates, subfloor leveling, high-story scaffolding, and complex miter cuts always move final quotes. That is why every cost page exposes editable material and labor unit prices alongside Budget, Average, and Premium 2026 US presets, and exports a plain-text shopping list you can bring straight to a local supplier or contractor walkthrough.