function calculateConcrete() {
// 1. Get input values
var lFt = parseFloat(document.getElementById('lenFt').value) || 0;
var lIn = parseFloat(document.getElementById('lenIn').value) || 0;
var wFt = parseFloat(document.getElementById('widFt').value) || 0;
var wIn = parseFloat(document.getElementById('widIn').value) || 0;
var thick = parseFloat(document.getElementById('thickIn').value) || 0;
var waste = parseFloat(document.getElementById('wastePct').value) || 0;
// 2. Validate essential inputs
if ((lFt === 0 && lIn === 0) || (wFt === 0 && wIn === 0) || thick === 0) {
alert("Please enter valid length, width, and thickness dimensions.");
return;
}
// 3. Logic: Convert all dimensions to Feet
var totalLengthFt = lFt + (lIn / 12);
var totalWidthFt = wFt + (wIn / 12);
var totalThickFt = thick / 12;
// 4. Calculate Volume in Cubic Feet
var volCuFt = totalLengthFt * totalWidthFt * totalThickFt;
// 5. Apply Waste Percentage
var totalVolCuFt = volCuFt * (1 + (waste / 100));
// 6. Convert to Cubic Yards (1 Yard = 27 Cubic Feet)
var totalVolCuYards = totalVolCuFt / 27;
// 7. Calculate Bags
// Standard yield: 80lb bag ≈ 0.60 cu ft, 60lb bag ≈ 0.45 cu ft
var bags80 = Math.ceil(totalVolCuFt / 0.60);
var bags60 = Math.ceil(totalVolCuFt / 0.45);
// 8. Display Results
document.getElementById('resYards').innerText = totalVolCuYards.toFixed(2);
document.getElementById('resFeet').innerText = totalVolCuFt.toFixed(2);
document.getElementById('resBags80').innerText = bags80;
document.getElementById('resBags60').innerText = bags60;
// Show result div
document.getElementById('concreteResult').style.display = 'block';
}
How to Calculate Concrete for Your Project
Planning a patio, driveway, or shed foundation requires precise measurements to ensure you order enough material without excessive waste. This Concrete Slab Calculator helps you determine exactly how much premix or ready-mix concrete you need based on the specific dimensions of your project.
Understanding the Formula
Concrete is measured by volume. To calculate the volume of a rectangular slab, you multiply the Length × Width × Thickness. Since construction measurements often mix feet and inches, it is crucial to convert all numbers to a decimal format (feet) before multiplying.
Cubic Yards: This is the standard unit for ordering concrete from a ready-mix truck. One cubic yard is equal to 27 cubic feet.
Cubic Feet: This unit is generally used when calculating the number of bags needed for smaller DIY projects.
Why Is the Waste Factor Important?
In the construction industry, a "waste margin" is standard practice. We recommend adding 5% to 10% to your total calculation. This accounts for several common issues:
Spillage: Concrete may spill during mixing or transport.
Uneven Subgrade: If the ground beneath your slab isn't perfectly flat, the concrete will fill the dips, requiring more volume than calculated based on a flat plane.
Form Bowing: Wooden forms can bow slightly outward under the weight of wet concrete, increasing the volume.
Bags vs. Ready-Mix Truck
Deciding between buying bags or ordering a truck depends on the volume:
Under 1 Cubic Yard: It is usually more cost-effective to buy 60lb or 80lb bags of premix from a hardware store. For example, a 10×10 foot patio at 4 inches thick is roughly 1.23 cubic yards, which would require over 50 bags of 80lb mix—physically exhausting to mix by hand.
Over 1 Cubic Yard: Consider ordering a ready-mix truck. While there may be a delivery fee, you save immense labor and ensure a consistent cure for the slab.
Standard Bag Yields
When purchasing pre-mixed concrete (like Quikrete or Sakrete), use these approximations:
80lb Bag: Yields approximately 0.60 cubic feet.
60lb Bag: Yields approximately 0.45 cubic feet.
Always round up to the nearest whole bag to ensure you don't run out in the middle of a pour.