Exact Rectangle Union and Coverage Depth
Measure total covered area and overlap-depth areas from bounded axis-aligned rectangle layouts.
Loading tool…
How to use Exact Rectangle Union and Coverage Depth
Sweep exact x slabs while accumulating y coverage counts. Each slab contributes area to its actual overlap depth. The result checks that depth-weighted areas equal the sum of all original rectangle areas.
- Enter model json (schema and units below).
- Choose the stated convention and check the units and supported model.
- Calculate, inspect the result, then copy or download it.
Good to know
- Plain decimal JSON numbers or strings, at most six fractional places, magnitude at most 1,000,000,000; raw numeric spellings and duplicate object members are checked. Exact rational arithmetic is capped at 8,192 bits. Text is at most 30,000 characters; a local JSON download preserves exact fractions or full stored approximate numbers. 1–100 axis-aligned [x1,y1,x2,y2] rectangles with strictly increasing corners. Touching edges add no area; duplicates deliberately increase coverage depth. One planar unit, no rotated rectangles, image alpha masks, accessibility verdict or map projection.
- Local calculation only; no input persistence or external lookup. Text/JSON is limited to 30000 characters and output to 1000000 characters. Numeric model inputs and precision/work limits are stated on this page. Approximate JSON numbers retain full stored values; exact arithmetic outputs retain decimal or fraction strings. Unsupported states fail explicitly.
Common questions
Does summed rectangle area equal union area?
Only when their interiors do not overlap. The union counts each covered location once; summed individual area counts its coverage depth.
Is the input uploaded or saved?
No. The tool calculates inside this browser tab and provides a local download; it does not persist your input.
Keep going with related tools
All math →Rectangle Calculator
Find rectangle area, perimeter, diagonal, and aspect ratio from two side lengths.
MathExact Convex Polygon Intersection
Intersect two strictly convex coordinate polygons and retain exact rational vertices, area and degenerate contact states.
AccessibilityTarget Rectangle Spacing Check
Check exact 24 CSS pixel target-size and spacing geometry for a supplied rectangle layout.