Calculate cubic yards and premix bags needed for your project
0% (Exact)
5% (Recommended for Simple)
10% (Recommended for DIY)
15% (Complex Shapes)
Please enter valid positive numbers for dimensions.
Material Estimates
Total Cubic Yards:0.00 yd³
Total Cubic Feet:0.00 ft³
For Premix Bags (Hardware Store):
80lb Bags Needed:0
60lb Bags Needed:0
*Bag counts rounded up to the nearest whole bag.
function calculateConcrete() {
// Get Input Values
var length = document.getElementById("slabLength").value;
var width = document.getElementById("slabWidth").value;
var thickness = document.getElementById("slabThickness").value;
var waste = document.getElementById("wasteFactor").value;
// Elements for display
var resultBox = document.getElementById("results");
var errorMsg = document.getElementById("error-msg");
var spanYards = document.getElementById("resYards");
var spanFeet = document.getElementById("resFeet");
var spanBags80 = document.getElementById("resBags80");
var spanBags60 = document.getElementById("resBags60");
// Validation
if (length === "" || width === "" || thickness === "" || length <= 0 || width <= 0 || thickness <= 0) {
errorMsg.style.display = "block";
resultBox.style.display = "none";
return;
}
errorMsg.style.display = "none";
// Logic
// 1. Convert inputs to float
var l = parseFloat(length);
var w = parseFloat(width);
var t = parseFloat(thickness);
var wastePercent = parseFloat(waste);
// 2. Calculate Cubic Feet (L x W x (Thickness/12))
var thicknessInFeet = t / 12;
var cubicFeet = l * w * thicknessInFeet;
// 3. Add Waste
var totalCubicFeet = cubicFeet * (1 + (wastePercent / 100));
// 4. Calculate Cubic Yards (Cubic Feet / 27)
var cubicYards = totalCubicFeet / 27;
// 5. Calculate Bags
// Average yield: 80lb bag ~= 0.60 cubic feet
// Average yield: 60lb bag ~= 0.45 cubic feet
var bags80 = Math.ceil(totalCubicFeet / 0.60);
var bags60 = Math.ceil(totalCubicFeet / 0.45);
// Update UI
spanYards.innerHTML = cubicYards.toFixed(2) + " yd³";
spanFeet.innerHTML = totalCubicFeet.toFixed(2) + " ft³";
spanBags80.innerHTML = bags80 + " bags";
spanBags60.innerHTML = bags60 + " bags";
// Show Results
resultBox.style.display = "block";
}
How to Calculate Concrete for Your Project
Whether you are pouring a patio, a driveway, or a simple shed foundation, accurately estimating the amount of concrete needed is the most critical step in the planning process. Ordering too little can result in a structural "cold joint" if you have to wait for a second truck, while ordering too much is a waste of money and resources.
The Concrete Formula
To calculate the concrete volume, you must determine the cubic footage of the area to be filled. The formula is:
Since concrete is typically sold by the cubic yard (for ready-mix trucks) or by the bag (for smaller DIY projects), you need to convert your result. There are 27 cubic feet in one cubic yard.
Why Include a Waste Factor?
In the construction industry, it is standard practice to include a margin of error, often called a "waste factor." This accounts for:
Uneven Subgrade: If the ground isn't perfectly flat, some areas of the slab will be thicker than others.
Spillage: Some concrete is inevitably lost during the pour or transit from the mixer to the form.
Form Deflection: Wooden forms may bow slightly outward under the weight of the wet concrete, increasing the volume.
For most DIY projects using rectangular forms, a 5% to 10% safety margin is recommended. If you are pouring on a very uneven surface or doing complex shapes, consider 15%.
Bags vs. Ready-Mix Truck
When should you buy bags, and when should you call a truck?
Premix Bags (60lb or 80lb): Ideal for small projects under 1 cubic yard (about 45 bags). While labor-intensive to mix, it is cost-effective for fence posts, small pads, or repairs.
Ready-Mix Truck: Best for projects over 1 cubic yard. Although there is often a "short load fee" for small orders (usually under 3-4 yards), the consistency of the mix and the speed of the pour make it superior for driveways and large patios.
Standard Thicknesses
The thickness of your slab depends on its use:
4 Inches: Standard for residential sidewalks, patios, and garage floors for passenger cars.
5-6 Inches: Recommended for driveways holding heavier trucks or RVs.