How it works
Measure the room’s length and width, and the height of the walls. The calculator works out the area of the walls, takes off any doors and windows you won’t paint, and adds the ceiling if you’re painting it. It multiplies that by the number of coats, then divides by how far the paint goes to find how much to buy.
How far paint goes is called its coverage, or spreading rate. It’s printed on the can, in square meters per liter or square feet per gallon, and it differs from one paint to the next, so use the figure from your own can. The calculator also rounds the paint up to whole cans of the size you’re buying.
The formula
Wall area = 2 × (length + width) × height
Area to paint = wall area − doors and windows + ceiling
Paint = area to paint × coats ÷ coverage
Cans = paint ÷ paint in one can, rounded up to a whole number
- 2 × (length + width) is the distance around the room. Times the height, it’s the area of all four walls.
- Doors and windows: multiply each one’s width by its height and add them up.
- Ceiling = length × width, if you’re painting it.
- Coverage is the area one liter or gallon covers in one coat.
Worked example
Want this with your own numbers? See Show the work above.
A room is 15 ft long, 12 ft wide, and 9 ft high, with two doors and two windows of about 15 ft² each. It needs two coats, and the paint covers 350 ft² per gallon.
- Find the wall area: 2 × (15 ft + 12 ft) × 9 ft = 486 ft².
- Take off the doors and windows: 486 ft² − 60 ft² = 426 ft².
- Multiply by the number of coats: 426 ft² × 2 = 852 ft².
- Divide by the coverage: 852 ft² ÷ 350 ft² per gallon = 2.43 US gallons.
That’s 2.43 one-gallon cans, so buy 3 cans.
In metric: a room 4 m by 3.5 m, with 2.4 m walls and 3 m² of doors and windows, has 2 × (4 m + 3.5 m) × 2.4 m = 36 m² of wall, or 33 m² to paint. Two coats are 66 m², and paint that covers 12 m² per liter needs 66 ÷ 12 = 5.5 L: three 2.5 L cans.
FAQ
How much does a gallon or liter of paint cover?
Check the can, since it varies with the paint. As a rough guide, many paints cover 300 to 400 square feet per US gallon, which is about 7 to 10 square meters per liter. Under the EU Ecolabel, white and light-colored indoor paints must cover at least 8 square meters per liter.
How many coats of paint do I need?
Two coats is the usual minimum. You may need more when painting a light color over a dark one, or with a glossy paint: changing from dark to light can take three or four coats, and a job that takes two coats of flat paint often takes three or more of semi-gloss or gloss. Set the number of coats to match, or compare two and three side by side.
Should I subtract doors and windows?
You can leave them in for a quick estimate that leaves a little to spare, or take them out for a closer one. Measure each door and window’s width and height, multiply them, and add up the areas. The more door and window area there is, the bigger the difference.
What if my walls are textured?
A textured surface can take up to 50% more paint than a smooth one. If that’s your wall, enter a lower coverage than the can says: two thirds of it gives you 50% more paint.
How do I work out paint for a ceiling only?
Choose “Ceiling only” and enter the room’s length and width. The ceiling’s area is length × width, so a 4 m by 3.5 m ceiling is 14 m².
Sources
- Wall area from the room’s size, minus windows and doors, times the coats, divided by the area a gallon covers: Glencoe Prealgebra (Malloy, Molix-Bailey, and Price, 2008), chapter 8, exercise 36
- Measuring walls, subtracting windows and doors, coverage of 300 to 400 square feet per gallon, coats, and textured surfaces: PaintCare, Buy the Right Amount of Paint
- The same method in square meters and liters, with at least two coats: Community RePaint, How to calculate the right amount of paint
- Minimum spreading rate of 8 m² per liter for indoor paints: Commission Decision 2014/312/EU (EU Ecolabel for indoor and outdoor paints and varnishes), criterion 3(a)
- Area and perimeter of a rectangle: OpenStax Prealgebra 2e, section 9.4, Use Properties of Rectangles, Triangles, and Trapezoids
- The foot as exactly 0.3048 m and the US gallon as exactly 231 cubic inches (3.785411784 L): NIST Handbook 44 (2026), Appendix C, General Tables of Units of Measurement
Cite this page
APA (7th edition)
Mathlark. (2026, October 3). Paint calculator. https://mathlark.com/diy/paint-calculator/
MLA (9th edition)
"Paint Calculator." Mathlark, 3 Oct. 2026, mathlark.com/diy/paint-calculator/.