If buying bags instead of a truck delivery, you need approximately 0 bags (80lbs).
How to Calculate Concrete Slab Costs
Planning a new patio, driveway, or shed foundation requires accurate estimation of concrete volume. Ordering too little concrete can result in "cold joints" which weaken the structure, while ordering too much is a waste of budget. This calculator helps you determine the exact volume in Cubic Yards and estimates the financial cost based on local pricing.
The Concrete Volume Formula
To calculate the concrete needed for a slab, we use the volume formula converted into cubic yards:
Note that thickness is usually measured in inches, so it must be divided by 12 to convert it to feet before multiplying. Finally, the result in cubic feet is divided by 27, because there are 27 cubic feet in one cubic yard.
Recommended Slab Thickness
4 Inches: Standard for residential walkways, patios, and garage floors for passenger cars.
5-6 Inches: Recommended for driveways accommodating heavier vehicles (trucks/SUVs) or areas with poor soil conditions.
8+ Inches: Heavy-duty commercial use or foundations supporting significant structural weight.
Accounting for Waste and Spillage
No site is perfectly level. Excavation often results in uneven ground, meaning your slab might be 4 inches thick in some spots and 4.5 inches in others. Professional contractors always include a safety margin (or waste factor) of 5% to 10%. This ensures you don't run out of concrete mid-pour.
function calculateConcreteCost() {
// 1. Get Inputs using var
var len = document.getElementById('cc_length').value;
var wid = document.getElementById('cc_width').value;
var thickInches = document.getElementById('cc_thickness').value;
var pricePerYard = document.getElementById('cc_price').value;
var wastePercent = document.getElementById('cc_waste').value;
// 2. Validate Inputs
if (len === "" || wid === "" || pricePerYard === "" || isNaN(len) || isNaN(wid)) {
alert("Please enter valid numbers for Length, Width, and Price.");
return;
}
// Convert strings to floats
len = parseFloat(len);
wid = parseFloat(wid);
thickInches = parseFloat(thickInches);
pricePerYard = parseFloat(pricePerYard);
wastePercent = parseFloat(wastePercent);
if (wastePercent < 0) wastePercent = 0;
// 3. Calculation Logic
// Convert thickness to feet
var thickFeet = thickInches / 12;
// Calculate Cubic Feet
var cubicFeet = len * wid * thickFeet;
// Convert to Cubic Yards (27 cubic feet = 1 cubic yard)
var cubicYards = cubicFeet / 27;
// Add Safety Margin/Waste
var totalYards = cubicYards * (1 + (wastePercent / 100));
// Calculate Cost
var totalCost = totalYards * pricePerYard;
// Calculate Bags (Approximation: 1 cubic yard = ~45 bags of 80lb concrete mixture)
// Or more precisely: 1 yard = 3600-4000 lbs approx depending on mix.
// Standard pre-mix is ~133 lbs per cubic foot.
// 27 cu ft * 133 = 3591 lbs.
// 3591 / 80 = 44.8 bags per yard.
var bagsNeeded = totalYards * 45;
// 4. Update DOM / Output
document.getElementById('res_yards').innerHTML = totalYards.toFixed(2);
document.getElementById('res_cost').innerHTML = totalCost.toFixed(2);
document.getElementById('res_bags').innerHTML = Math.ceil(bagsNeeded);
// Show Result Box
document.getElementById('cc_result').style.display = 'block';
}