*Calculations include your selected safety margin.
function calculateConcrete() {
var lengthInput = document.getElementById("lengthDetails");
var widthInput = document.getElementById("widthDetails");
var thickInput = document.getElementById("thicknessDetails");
var qtyInput = document.getElementById("quantityDetails");
var wasteSelect = document.getElementById("wasteFactor");
var len = parseFloat(lengthInput.value);
var wid = parseFloat(widthInput.value);
var thick = parseFloat(thickInput.value);
var qty = parseFloat(qtyInput.value);
var wastePercent = parseFloat(wasteSelect.value);
if (isNaN(len) || isNaN(wid) || isNaN(thick) || isNaN(qty) || len <= 0 || wid <= 0 || thick <= 0) {
alert("Please enter valid positive dimensions for Length, Width, and Thickness.");
return;
}
// Calculation Logic
// 1. Convert thickness to feet
var thickInFeet = thick / 12;
// 2. Calculate Cubic Feet per item
var cubicFeetPerItem = len * wid * thickInFeet;
// 3. Total Cubic Feet (base)
var totalCubicFeetBase = cubicFeetPerItem * qty;
// 4. Add Waste
var wasteMultiplier = 1 + (wastePercent / 100);
var totalCubicFeet = totalCubicFeetBase * wasteMultiplier;
// 5. Convert to Cubic Yards (1 Yard = 27 Cubic Feet)
var totalCubicYards = totalCubicFeet / 27;
// 6. Calculate Bags
// Standard yield: 80lb bag ~= 0.6 cu ft, 60lb bag ~= 0.45 cu ft
var bags80 = Math.ceil(totalCubicFeet / 0.6);
var bags60 = Math.ceil(totalCubicFeet / 0.45);
// Display Results
document.getElementById("resultsArea").style.display = "block";
document.getElementById("resFeet").innerHTML = totalCubicFeet.toFixed(2) + " cu ft";
document.getElementById("resYards").innerHTML = totalCubicYards.toFixed(2) + " Cubic Yards";
document.getElementById("resBags60").innerHTML = bags60 + " bags";
document.getElementById("resBags80").innerHTML = bags80 + " bags";
}
How to Calculate Concrete for Your Project
Whether you are pouring a patio, a driveway, or footings for a deck, knowing exactly how much concrete to order is crucial. Ordering too little leads to cold joints and structural weaknesses, while ordering too much is a waste of money. This Concrete Calculator helps you estimate the volume in cubic yards for truck orders and the number of pre-mixed bags for smaller DIY jobs.
The Concrete Calculation Formula
To determine the volume of concrete needed for a rectangular slab, use the following formula:
In the construction industry, it is standard practice to order 5% to 10% extra material. This accounts for:
Spillage during the pour.
Uneven subgrade (the ground might be slightly lower in spots).
Variations in formwork.
Our calculator allows you to select a "Waste Factor" to ensure you don't run short in the middle of your project.
Bags vs. Ready-Mix Truck
When to use bags: For projects requiring less than 1 cubic yard (roughly 45-50 bags of 60lb mix), it is often more economical and manageable to mix by hand or use a portable mixer.
When to order a truck: If your project requires more than 1 cubic yard, ordering ready-mix concrete from a local supplier is usually cheaper and saves significant physical labor.