Carpet Roll Yardage Calculator
carpet_rollCalculates carpet to order from a roll for up to 3 rooms plus stairs, returning strip counts, linear length and square yards with allowances and waste included.
Instructions
Calculate carpet to order from a roll: strips, linear length and square yards for up to 3 rooms plus stairs. Each room is cut along room_length and covered across room_width by strips of usable_roll_width; end_allowance and side_allowance add trimming; stairs, stair_width, tread_depth and riser_height add stair pieces; doorways is subtracted from the tack strip length; waste adds extra length. Use for wall-to-wall carpet sold by the roll. For plank or laminate floors use flooring_cartons; for tile use tile_count. 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": "carpet_roll"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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 linear order percentage. Unit: % (US) / % (metric). Default (US units): 0. | |
| stairs | No | Carpeted stairs (number of steps, 0 for none). Default (US units): 0. | |
| doorways | No | Doorway widths to skip for tack strip (total). Unit: ft (US) / m (metric). Default (US units): 0. | |
| stair_width | No | Stair width. Unit: ft (US) / m (metric). Default (US units): 3. | |
| tread_depth | No | Tread depth. Unit: in (US) / mm (metric). Default (US units): 10. | |
| riser_height | No | Riser height. Unit: in (US) / mm (metric). Default (US units): 7.75. | |
| room_width_1 | No | Room 1 width across strips. Unit: ft (US) / m (metric). Default (US units): 13. | |
| room_width_2 | No | Room 2 width across strips. Unit: ft (US) / m (metric). Default (US units): 10. | |
| room_width_3 | No | Room 3 width across strips. Unit: ft (US) / m (metric). Optional, leave out to skip. | |
| end_allowance | No | Extra length per strip. Unit: ft (US) / m (metric). Default (US units): 0.5. | |
| room_length_1 | No | Room 1 cut direction length. Unit: ft (US) / m (metric). Default (US units): 15. | |
| room_length_2 | No | Room 2 cut direction length. Unit: ft (US) / m (metric). Default (US units): 12. | |
| room_length_3 | No | Room 3 cut direction length. Unit: ft (US) / m (metric). Optional, leave out to skip. | |
| side_allowance | No | Extra width per room. Unit: ft (US) / m (metric). Default (US units): 0. | |
| usable_roll_width | No | Usable roll width. Unit: ft (US) / m (metric). Default (US units): 12. |