How it works
A gallon of interior paint covers 350 to 400 square feet per coat on smooth, primed drywall. Textured walls, bare drywall and dramatic color changes soak up more, so drop the coverage to about 300 for those. The calculator subtracts about 21 ft² for each standard door and 15 ft² for each window.
To get the perimeter, add the lengths of all walls. A 12 by 12 foot room has a perimeter of 48 feet. Two coats is the norm for even color, especially when going from dark to light or when using a paint-and-primer product over patched areas.
Ceilings are a separate job: multiply room length by width and use ceiling paint coverage. Leftover paint is worth keeping for touch-ups, so the extra quart from rounding up is rarely wasted.