Wall Paint Can Calculator
paint_gallonsCalculate paint gallons and cans needed for walls or a whole room, including optional primer and ceiling, by subtracting door and window areas and applying coats and coverage.
Instructions
Calculate gallons and cans of paint, and optional primer, for walls or a room. mode 0 uses total wall length × height; mode 1 a room from room_length × room_width × height, adding the ceiling when ceiling is 1. Door and window area is subtracted, the result is multiplied by coats and divided by coverage (area per gallon, 350 ft² default), plus a touch-up allowance; can_size is gallons per can. Use for wall and ceiling paint. For drywall sheets and compound use drywall_sheets. Read-only calculation with no side effects; the same inputs always give the same result. Every input is optional and falls back to the calculator page default; units is "us" (default) or "metric". Returns headline (amount to buy), summary lines, numbered worked steps, inputs_used and calculator_url.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "paint_gallons"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | What to paint. Options: 0 = Walls (enter the total wall length); 1 = Whole room, ceiling optional. | 0 |
| coats | No | Number of coats. Default (US units): 2. | |
| doors | No | Doors. Default (US units): 0. | |
| units | No | Unit system for every length/area/volume input: "us" (feet, inches, ft², ft³) or "metric" (m, cm or mm, m², m³). Defaults are converted when "metric" is chosen. | us |
| waste | No | Extra for touch-ups. Unit: % (US) / % (metric). Default (US units): 10. | |
| height | No | Wall height. Unit: ft (US) / m (metric). Default (US units): 8. | |
| length | No | Total wall length. Unit: ft (US) / m (metric). Default (US units): 30. | |
| primer | No | Primer. Options: 0 = No primer; 1 = One coat of primer (same coverage). | 0 |
| ceiling | No | Ceiling. Options: 0 = Walls only; 1 = Ceiling in the same paint. | 0 |
| windows | No | Windows. Default (US units): 0. | |
| can_size | No | US gallons per can. Default (US units): 1. | |
| coverage | No | Coverage per US gallon. Unit: ft² (US) / m² (metric). Default (US units): 350. | |
| openings | No | Doors and windows. Unit: ft² (US) / m² (metric). Default (US units): 40. | |
| can_price | No | Price per can of paint. Unit: $ (US) / $ (metric). Optional, leave out to skip. | |
| door_area | No | Area of each door. Unit: ft² (US) / m² (metric). Default (US units): 21. | |
| room_width | No | Room width. Unit: ft (US) / m (metric). Default (US units): 12. | |
| room_length | No | Room length. Unit: ft (US) / m (metric). Default (US units): 12. | |
| window_area | No | Area of each window. Unit: ft² (US) / m² (metric). Default (US units): 15. | |
| primer_price | No | Price per can of primer. Unit: $ (US) / $ (metric). Optional, leave out to skip. |