Wall length × Wall height = Total wall area
The calculator multiplies the wall's length by its height to get the total surface area. This is the starting point before accounting for openings.
Subtract doors and windows
Each standard door deducts 21 sq ft and each standard window deducts 15 sq ft from the total wall area, giving you the paintable surface.
Paintable area × Coats ÷ 350 = Gallons
The paintable area is multiplied by the number of coats, then divided by 350 — the typical coverage of one US gallon. The result is also converted to liters (1 gallon ≈ 3.785 L).