(function(){ "use strict"; if(window.P2_BUILT) return; window.P2_BUILT = true; var P2 = window.P2 = {}; P2.BAG = { b80:0.60, b60:0.45, b50:0.375, b40:0.30 }; P2.BAGKG = { k25:0.0117, k20:0.0094 }; P2.DENSITY_LB_FT3 = 150; P2.DENSITY_KG_M3 = 2400; P2.FT3_PER_M3 = 35.3146667; P2.M3_PER_FT3 = 0.0283168466; P2.LB_PER_KG = 2.20462262; P2.KG_PER_LB = 0.45359237; (function(){ if(typeof document === 'undefined') return; if(document.getElementById('p2style')) return; var s = document.createElement('style'); s.id = 'p2style'; s.textContent = '.p2-units{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}' +'.p2-units button{border:1px solid #e2e8f0;background:#ffffff;border-radius:10px;padding:9px 14px;' +'font-size:14px;font-weight:600;cursor:pointer;color:#0f172a;white-space:nowrap}' +'.p2-units button:hover{background:#f1f5f9}' +'.p2-units button.on{background:#1e40af;border-color:#1e40af;color:#fff}' +'.p2CurSym{font-weight:600;color:#0f172a;padding:0 4px}' +'#p2uCur{min-width:86px}'; document.head.appendChild(s); })(); P2.num = function(v){ v = parseFloat(v); return (isFinite(v) && v > 0) ? v : 0; }; P2.ceilSafe = function(x){ return Math.ceil(x - 1e-9) || 0; }; P2.esc = function(s){ return String(s).replace(/&/g,'&').replace(//g,'>').replace(/"/g,'"'); }; P2.fmt = function(v, d){ if(!isFinite(v)) return '0'; var s = v.toFixed(d===undefined?2:d); if(s.indexOf('.')>=0) s = s.replace(/\.?0+$/,''); return s; }; var TO_FT = { ft:1, 'in':1/12, m:3.28084, cm:0.0328084, mm:0.00328084 }; var TO_IN = { 'in':1, ft:12, m:39.3701, cm:0.393701, mm:0.0393701 }; P2.toFt = function(v, u){ v = parseFloat(v); if(!isFinite(v)) return 0; return v*(TO_FT[u||'ft']||1); }; P2.toIn = function(v, u){ v = parseFloat(v); if(!isFinite(v)) return 0; return v*(TO_IN[u||'in']||1); }; P2.convertVal = function(v, fromU, toU, kind){ v = parseFloat(v); if(!isFinite(v)) return ''; var base = (kind==='sm') ? TO_IN : TO_FT; var out = (v*(base[fromU]||1)) / (base[toU]||1); return String(Math.round(out*10000)/10000); }; P2.bagsNeeded = function(ft3){ ft3 = P2.num(ft3); return { b80:P2.ceilSafe(ft3/P2.BAG.b80), b60:P2.ceilSafe(ft3/P2.BAG.b60), b50:P2.ceilSafe(ft3/P2.BAG.b50), b40:P2.ceilSafe(ft3/P2.BAG.b40) }; }; P2.bagsNeededM3 = function(m3){ m3 = P2.num(m3); return { k25:P2.ceilSafe(m3/P2.BAGKG.k25), k20:P2.ceilSafe(m3/P2.BAGKG.k20) }; }; P2.weightLb = function(ft3){ return ft3*P2.DENSITY_LB_FT3; }; P2.weightKg = function(m3){ return m3*P2.DENSITY_KG_M3; }; P2.trucks = function(y){ return P2.ceilSafe(P2.num(y)/10); }; P2.trucksM3 = function(m){ return P2.ceilSafe(P2.num(m)/8); }; var I = { cube:'', bags:'', copy:'', print:'', share:'', reset:'', truck:'', wall:'', pile:'', trowel:'', slab:'' }; P2.ICONS = I; P2.UNITS = 'imp'; P2.CUR = '$'; try{ var _u = localStorage.getItem('cc_units'), _c = localStorage.getItem('cc_cur'); if(_u==='imp'||_u==='met') P2.UNITS = _u; if(_c==='$'||_c==='£'||_c==='€') P2.CUR = _c; }catch(e){} var FIELD_UNITS = ['ft','in','m','cm','mm']; P2.unitSelectHTML = function(fieldId, kind, defUnit){ var list = (kind==='len'||kind==='sm') ? FIELD_UNITS : (kind==='yd3' ? ['yd3','m3','ft3'] : []); if(!list.length) return ''; var h = ''; }; P2.fieldHTML = function(f){ var isDim = (f.kind==='len'||f.kind==='sm'||f.kind==='yd3'); var sel = isDim ? P2.unitSelectHTML(f.id, f.kind, f.defUnit||'ft') : ''; var suffix = (f.kind==='usd') ? ''+P2.CUR+'' : ''; var quick = ''; if(f.quick && f.quick.length){ quick = '
'; f.quick.forEach(function(q){ quick += ''; }); quick += '
'; } return '
' +'
'+(sel||suffix)+'
'+quick+'
'; }; P2.wasteRowHTML = function(defPct){ defPct = defPct || 10; function opt(v, lbl){ return ''; } return '
' +'
' +'
'; }; P2.readWaste = function(panel){ var wcus = panel.querySelector('.wasteCustom'); var wv = wcus ? parseFloat(wcus.value) : NaN; if(isFinite(wv) && wv>0) return Math.min(wv,100); var wsel = panel.querySelector('.wasteSel'); return wsel ? (parseFloat(wsel.value)||0) : 0; }; P2.priceFieldHTML = function(fid, label, ph, note){ return '
' +'
' +''+P2.CUR+'
'; }; P2.cardsHTML = function(cards){ var h = '
'; cards.forEach(function(c){ h += '
'+(I[c.icon]||I.cube)+'' +''+c.big+''+c.lbl+'
'; }); return h+'
'; }; P2.subHTML = function(items){ var h = '
'; items.forEach(function(it){ h += ''+it[0]+' '+it[1]+''; }); return h+'
'; }; P2.nwColHTML = function(title, cards, sub){ return '

'+title+'

'+P2.cardsHTML(cards)+P2.subHTML(sub)+'
'; }; P2.workingHTML = function(text){ return '
Working: '+text+'
'; }; P2.noteHTML = function(text){ return '

'+text+'

'; }; var BAG_OPTIONS = [ { id:'b80', label:'80 lb' }, { id:'b60', label:'60 lb' }, { id:'b50', label:'50 lb' }, { id:'b40', label:'40 lb' }, { id:'k25', label:'25 kg' }, { id:'k20', label:'20 kg' } ]; P2.selectedBag = 'b80'; P2.bagLabel = function(id){ var m = { b80:'80 lb', b60:'60 lb', b50:'50 lb', b40:'40 lb', k25:'25 kg', k20:'20 kg' }; return m[id] || '80 lb'; }; P2.bagSelectorHTML = function(){ var h = '
'; BAG_OPTIONS.forEach(function(b){ var on = (b.id===P2.selectedBag); h += ''; }); return h+'
'; }; P2.wireBags = function(panel, mode, rerender){ panel.querySelectorAll('[data-bag]').forEach(function(b){ b.addEventListener('click', function(){ P2.selectedBag = b.getAttribute('data-bag'); rerender(); }); }); }; P2.actionsHTML = function(modeId){ return '
' +'' +'' +'' +'
'; }; function copyText(txt, btn){ var done = function(ok){ var sp = btn.querySelector('span'), old = sp.textContent; btn.classList.add('ok'); sp.textContent = ok ? 'Copied' : 'Copy failed'; setTimeout(function(){ btn.classList.remove('ok'); sp.textContent = old; }, 1600); }; if(navigator.clipboard && navigator.clipboard.writeText){ navigator.clipboard.writeText(txt).then(function(){ done(true); }, function(){ done(false); }); } else { var ta = document.createElement('textarea'); ta.value = txt; ta.style.position='fixed'; ta.style.opacity='0'; document.body.appendChild(ta); ta.select(); try{ done(document.execCommand('copy')); }catch(e){ done(false); } document.body.removeChild(ta); } } P2.buildShareURL = function(mode, panel){ var params = new URLSearchParams(); params.set('tool', mode.id); panel.querySelectorAll('input[data-fid]').forEach(function(inp){ if(inp.value) params.set(inp.getAttribute('data-fid'), inp.value); }); panel.querySelectorAll('select.cc-funit').forEach(function(sel){ params.set(sel.getAttribute('data-funit')+'_u', sel.value); }); var wsel = panel.querySelector('.wasteSel'); if(wsel) params.set('waste', wsel.value); var base = window.location.origin + window.location.pathname; return base + '#' + mode.id + '?' + params.toString(); }; P2.doAction = function(act, btn, panel, mode){ var txt = panel._summary || 'Concrete Calculator: concretequantity.com'; if(act==='print'){ window.print(); return; } if(act==='reset'){ panel.querySelectorAll('input[data-fid], input.wasteCustom').forEach(function(i){ i.value=''; }); var wsel = panel.querySelector('.wasteSel'); if(wsel) wsel.value='10'; P2.calcPanel(mode, panel); P2.updatePreview(mode, panel); return; } if(act==='share'){ var url = P2.buildShareURL(mode, panel); if(navigator.share){ navigator.share({title:mode.title, text:panel._summary||'', url:url}) .catch(function(){ copyText(url, btn); }); return; } copyText(url, btn); return; } copyText(txt, btn); }; P2.wireActions = function(panel, mode){ panel.querySelectorAll('.cc-act, .cc-reset').forEach(function(b){ b.addEventListener('click', function(){ P2.doAction(b.getAttribute('data-act'), b, panel, mode); }); }); }; P2.dimLabel = function(txt, x, y, anchor){ return ''+P2.esc(txt)+''; }; P2.getLiveDims = function(mode, panel){ var live = {}; panel.querySelectorAll('input[data-fid]').forEach(function(inp){ var fid = inp.getAttribute('data-fid'); var sel = panel.querySelector('select.cc-funit[data-funit="'+fid+'"]'); if(inp.value) live[fid] = { val: inp.value, unit: sel ? sel.value : '' }; }); return live; }; P2.updatePreview = function(mode, panel){ var wrap = panel.querySelector('.cc-diagram'); if(!wrap || !mode.diagram) return; wrap.innerHTML = mode.diagram(P2.getLiveDims(mode, panel)) + '
Live preview updates as you type
'; }; var VLIMIT = { len:5000, sm:1200, num:100000, yd3:100000, usd:1000000 }; P2.validateFields = function(mode, vals, units){ var empty = '
'+(mode.empty||'Enter your measurements above to see results instantly.')+'
'; var allFields = (mode.fields||[]).concat(mode.extraFields||[]); for(var i=0;i]*>/g,''); if(f.optional) continue; if(raw===''||raw==null) return empty; var x = parseFloat(raw); if(!isFinite(x)) return ''; if(x<0) return ''; if(x===0) return ''; var u = units[f.id] || f.defUnit || 'ft'; var imp = x; if(f.kind==='len') imp = x*(TO_FT[u]||1); else if(f.kind==='sm') imp = x*(TO_IN[u]||1); else if(f.kind==='yd3'){ if(u==='m3') imp = x*1.30795; else if(u==='ft3') imp = x/27; } var lim = VLIMIT[f.kind]||100000; if(imp > lim) return ''; } return null; }; var ALL_LINKS = { slab:['Slab','/slab-concrete-calculator/'], footing:['Footing','/footing-concrete-calculator/'], wall:['Wall','/wall-concrete-calculator/'], column:['Column','/column-concrete-calculator/'], posthole:['Post Holes','/post-hole-concrete-calculator/'], circle:['Circle Slab','/circular-slab-concrete-calculator/'], curb:['Curb','/curb-concrete-calculator/'], stairs:['Stairs','/stairs-concrete-calculator/'], bags:['Bags','/concrete-bag-calculator/'], mix:['Mix Ratio','/concrete-mix-ratio-calculator/'], rebar:['Rebar','/rebar-calculator/'], cost:['Cost','/concrete-cost-calculator/'], driveway:['Driveway','/driveway-concrete-calculator/'], gravel:['Gravel','/gravel-calculator/'], blocks:['Block Wall','/block-wall-calculator/'], mortar:['Mortar','/mortar-calculator/'], readymix:['Ready Mix vs Bags','/ready-mix-vs-bags-calculator/'] }; P2.relatedHTML = function(links){ var h = ''; }; P2.verifiedHTML = function(text){ return '
Last verified: 15 Oct 2026. '+text+'
'; }; P2._modes = {}; P2.register = function(mode){ if(!mode || !mode.id) return; P2._modes[mode.id] = mode; }; P2.calcPanel = function(mode, panel){ var vals = {}, units = {}; panel.querySelectorAll('input[data-fid]').forEach(function(inp){ var fid = inp.getAttribute('data-fid'); vals[fid] = inp.value.trim(); var sel = panel.querySelector('select.cc-funit[data-funit="'+fid+'"]'); units[fid] = sel ? sel.value : null; }); var box = panel.querySelector('.cc-out'); var verr = P2.validateFields(mode, vals, units); if(verr){ box.innerHTML = verr; panel._summary=''; return; } var imp = mode.toImp(vals, units); var res = mode.render(imp, vals, units, panel); box.innerHTML = res.html; panel._summary = res.summary || ''; P2.wireBags(panel, mode, function(){ P2.calcPanel(mode, panel); }); P2.wireActions(panel, mode); }; P2.buildPanel = function(mode){ var p = document.createElement('div'); p.className = 'cc-panel on'; p.setAttribute('role','tabpanel'); var inner = '

'+mode.title+'

' +'

'+mode.formula+'

' +'
' +'
'; (mode.fields||[]).forEach(function(f){ inner += P2.fieldHTML(f); }); if(mode.extrasHTML) inner += mode.extrasHTML(); inner += '
' +'
' + P2.relatedHTML(mode.links || []) + P2.verifiedHTML(mode.verified || ''); p.innerHTML = inner; if(mode.defCur){ p.querySelectorAll('.p2CurSym').forEach(function(s){ s.textContent = mode.defCur; }); } p.querySelectorAll('input,select').forEach(function(el){ el.addEventListener('input', function(){ P2.calcPanel(mode, p); P2.updatePreview(mode, p); }); el.addEventListener('change', function(){ P2.calcPanel(mode, p); P2.updatePreview(mode, p); }); }); p.querySelectorAll('select.cc-funit').forEach(function(sel){ sel.addEventListener('change', function(){ var fid = sel.getAttribute('data-funit'); var inp = p.querySelector('input[data-fid="'+fid+'"]'); if(!inp || !inp.value){ P2.calcPanel(mode, p); P2.updatePreview(mode, p); return; } var field = null; (mode.fields||[]).forEach(function(f){ if(f.id===fid) field=f; }); if(!field) return; var oldU = sel.getAttribute('data-prev') || field.defUnit || 'ft'; var newU = sel.value; if(oldU!==newU) inp.value = P2.convertVal(inp.value, oldU, newU, field.kind); sel.setAttribute('data-prev', newU); P2.calcPanel(mode, p); P2.updatePreview(mode, p); }); sel.setAttribute('data-prev', sel.value); }); p.querySelectorAll('[data-quick]').forEach(function(b){ b.addEventListener('click', function(){ var fid = b.getAttribute('data-qfid'); var inp = p.querySelector('input[data-fid="'+fid+'"]'); var sel = p.querySelector('select.cc-funit[data-funit="'+fid+'"]'); if(inp){ var qv = b.getAttribute('data-quick'); if(sel && (sel.value==='m'||sel.value==='cm'||sel.value==='mm')){ var cm = parseFloat(qv)*2.54; if(sel.value==='m') inp.value = P2.fmt(cm/100,3); else if(sel.value==='cm') inp.value = P2.fmt(cm,1); else inp.value = P2.fmt(cm*10,0); } else { inp.value = qv; if(sel) sel.value='in'; } p.querySelectorAll('[data-qfid="'+fid+'"]').forEach(function(x){ x.classList.remove('on'); }); b.classList.add('on'); P2.calcPanel(mode, p); P2.updatePreview(mode, p); } }); }); P2.calcPanel(mode, p); P2.updatePreview(mode, p); return p; }; P2.wireHeader = function(){ var ui = document.getElementById('p2uImp'), um = document.getElementById('p2uMet'), uc = document.getElementById('p2uCur'); function paint(){ if(ui) ui.classList.toggle('on', P2.UNITS==='imp'); if(um) um.classList.toggle('on', P2.UNITS==='met'); if(uc) uc.textContent = (P2.CUR==='£' ? '£ GBP' : (P2.CUR==='€' ? '€ EUR' : '$ USD')); document.querySelectorAll('.p2CurSym').forEach(function(s){ s.textContent = P2.CUR; }); } if(ui) ui.onclick = function(){ P2.UNITS='imp'; try{localStorage.setItem('cc_units','imp');}catch(e){} document.querySelectorAll('.cc-funit').forEach(function(sel){ var fid = sel.getAttribute('data-funit'); var inp = document.querySelector('input[data-fid="'+fid+'"]'); var target = (sel.classList.contains('sm-unit')) ? 'in' : 'ft'; if(inp && inp.value){ var oldU = sel.value; inp.value = P2.convertVal(inp.value, oldU, target, (target==='in'?'sm':'len')); } sel.value = target; sel.setAttribute('data-prev', target); }); paint(); P2.rerenderAll(); }; if(um) um.onclick = function(){ P2.UNITS='met'; try{localStorage.setItem('cc_units','met');}catch(e){} document.querySelectorAll('.cc-funit').forEach(function(sel){ var fid = sel.getAttribute('data-funit'); var inp = document.querySelector('input[data-fid="'+fid+'"]'); var isSm = !!document.querySelector('#p2-'+fid+'[data-kind="sm"]'); var target = isSm ? 'cm' : 'm'; if(inp && inp.value){ inp.value = P2.convertVal(inp.value, sel.value, target, isSm?'sm':'len'); } sel.value = target; sel.setAttribute('data-prev', target); }); paint(); P2.rerenderAll(); }; if(uc) uc.onclick = function(){ P2.CUR = (P2.CUR==='$') ? '£' : ((P2.CUR==='£') ? '€' : '$'); try{localStorage.setItem('cc_cur',P2.CUR);}catch(e){} paint(); P2.rerenderAll(); }; paint(); }; P2.rerenderAll = function(){ Object.keys(P2._modes).forEach(function(id){ var panel = document.getElementById('p2p-'+id); if(panel) { P2.calcPanel(P2._modes[id], panel); P2.updatePreview(P2._modes[id], panel); } }); }; /* ============ 13. HUB TAB INTEGRATION (additive; V6 untouched) ============ */ P2.HUB_ORDER = ['driveway','gravel','blocks','mortar','readymix']; P2.HUB_ICONS = { driveway:'slab', gravel:'pile', blocks:'wall', mortar:'trowel', readymix:'truck' }; P2.activateHubTab = function(id){ var mode = P2._modes[id]; if(!mode) return false; var tabs = document.getElementById('ccTabs'), panels = document.getElementById('ccPanels'); if(!tabs || !panels) return false; var btns = tabs.querySelectorAll('button'); for(var i=0;i'+P2.esc(mode.tab)+''; tb.setAttribute('role','tab'); tb.setAttribute('data-mid', id); tb.setAttribute('aria-selected','false'); tb.setAttribute('aria-label', mode.title); (function(mid){ tb.onclick = function(){ P2.activateHubTab(mid); }; })(id); tabs.appendChild(tb); var p = P2.buildPanel(mode); p.id = 'p2p-'+id; p.classList.remove('on'); panels.appendChild(p); }); var h = (location.hash||'').replace('#','').split('?')[0]; if(h && P2._modes[h]) P2.activateHubTab(h); return true; }; P2.wireHubUnits = function(){ function syncFromStorage(){ try{ var u = localStorage.getItem('cc_units'), c = localStorage.getItem('cc_cur'); if(u==='imp'||u==='met') P2.UNITS = u; if(c==='$'||c==='£'||c==='€') P2.CUR = c; }catch(e){} } function convertP2Panels(toSys){ var panels = document.querySelectorAll('.cc-panel[id^="p2p-"]'); for(var pi=0; pi 0 ? (wFt3/27)*(o.price||0) : 0 }; }; function drivewaySVG(live){ var L = (live.l && live.l.val) ? (live.l.val+' '+(live.l.unit||'')) : 'Length'; var W = (live.w && live.w.val) ? (live.w.val+' '+(live.w.unit||'')) : 'Width'; var T = (live.t && live.t.val) ? (live.t.val+' '+(live.t.unit||'')) : 'Thickness'; return '' +'' +'' +'' +P2.dimLabel(L, 70, 70) +P2.dimLabel(T, 133, 60) +P2.dimLabel(W, 112, 88) +''; } P2.register({ id:'driveway', tab:'Driveway', title:'Driveway Concrete Calculator', formula:'Volume = Length x Width x Thickness / 27 (cubic yards)', diagram: drivewaySVG, fields:[ {id:'l',label:'Length',kind:'len',ph:'20',defUnit:'ft'}, {id:'w',label:'Width',kind:'len',ph:'12',defUnit:'ft'}, {id:'t',label:'Thickness',kind:'sm',ph:'4',defUnit:'in',quick:[4,5,6]} ], extrasHTML:function(){ return P2.wasteRowHTML(10) + P2.priceFieldHTML('price','Price per yd3','150','optional'); }, extraFields:[ {id:'price',label:'Price per yd3',kind:'usd',optional:true} ], empty:'Enter the driveway size above.', toImp:function(vals,units){ return { l:P2.toFt(vals.l,units.l), w:P2.toFt(vals.w,units.w), t:P2.toIn(vals.t,units.t), price:P2.num(vals.price) }; }, render:function(imp, vals, units, panel){ var waste = P2.readWaste(panel); var R = P2.calcDriveway({l:imp.l, w:imp.w, t:imp.t, price:imp.price, waste:waste}); var sel = P2.selectedBag; var selCount = (sel.charAt(0)==='k') ? R.bagsM[sel] : R.bags[sel]; var h = '

Driveway concrete

'; h += P2.bagSelectorHTML(); h += '
'; h += P2.nwColHTML('Net volume', [{icon:'cube',big:P2.fmt(R.netYd3),lbl:'Cubic Yards'},{icon:'cube',big:P2.fmt(R.netM3),lbl:'Cubic Metres'},{icon:'bags',big:selCount,lbl:P2.bagLabel(sel)+' Bags'}], [[P2.fmt(R.netFt3,1),'ft3'],[P2.fmt(R.weightLb,0)+' lb ('+P2.fmt(R.weightKg,0)+' kg)','weight'],[R.trucks,'truck load'+(R.trucks===1?'':'s')]]); h += P2.nwColHTML('With '+waste+'% waste', [{icon:'cube',big:P2.fmt(R.wasteYd3),lbl:'Cubic Yards'},{icon:'cube',big:P2.fmt(R.wasteM3),lbl:'Cubic Metres'},{icon:'bags',big:((sel.charAt(0)==='k')?R.bagsM[sel]:R.bags[sel]),lbl:P2.bagLabel(sel)+' Bags'}], [[P2.fmt(R.wasteFt3,1),'ft3'],[P2.fmt(R.weightWasteLb,0)+' lb ('+P2.fmt(R.weightWasteKg,0)+' kg)','weight'],[R.trucks,'truck load'+(R.trucks===1?'':'s')]]); h += '
'; h += P2.subHTML([[R.bags.b80,'x 80 lb'],[R.bags.b60,'x 60 lb'],[R.bags.b50,'x 50 lb'],[R.bags.b40,'x 40 lb'],[R.bagsM.k25,'x 25 kg'],[R.bagsM.k20,'x 20 kg']]); var lU = units.l || 'ft', wU = units.w || 'ft', tU = units.t || 'in'; var workTxt = P2.esc(String(vals.l))+' '+P2.esc(lU)+' x '+P2.esc(String(vals.w))+' '+P2.esc(wU) +' x ('+P2.esc(String(vals.t))+' '+P2.esc(tU)+' / 12) = '+P2.fmt(R.netFt3,1)+' ft3' +', / 27 = '+P2.fmt(R.netYd3)+' yd3' +(waste>0 ? ', x '+(1+waste/100).toFixed(2)+' waste = '+P2.fmt(R.wasteYd3)+' yd3' : ''); h += P2.workingHTML(workTxt); h += P2.noteHTML('Estimates only. Bag yields per manufacturer specs (80 lb = 0.60 ft3, 60 lb = 0.45 ft3, 40 lb = 0.30 ft3). Subgrade prep matters as much as thickness: compact the base, plan control joints and confirm the final order with your supplier.'); h += P2.actionsHTML('driveway')+'
'; var summary = 'Driveway concrete: net '+P2.fmt(R.netYd3)+' yd3, with '+waste+'% waste '+P2.fmt(R.wasteYd3)+' yd3. via concretequantity.com/driveway-concrete-calculator/'; return {html:h, summary:summary}; }, verified:'Bag yields per manufacturer specifications (Quikrete: 80 lb = 0.60 ft3, 60 lb = 0.45 ft3, 40 lb = 0.30 ft3). Density 150 lb/ft3 (2,400 kg/m3). Thickness: 4 in (100 mm) minimum for cars on firm ground; 5 to 6 in (125 to 150 mm) recommended for driveways.', links:['slab','gravel','cost','curb','readymix','circle','footing','rebar'] }); })(); (function(){ "use strict"; P2.calcGravel = function(o){ var compactedFt3 = o.l * o.w * (o.d / 12); var looseFt3 = compactedFt3 * o.factor; var looseM3 = looseFt3 * 0.0283168466; var tonnes = looseM3 * o.density; var bags = P2.ceilSafe(tonnes * 1000 / o.bagKg); return { compactedFt3: compactedFt3, compactedYd3: compactedFt3 / 27, compactedM3: compactedFt3 * 0.0283168466, looseFt3: looseFt3, looseYd3: looseFt3 / 27, looseM3: looseM3, tonnes: tonnes, kg: tonnes * 1000, lb: tonnes * 1000 * 2.20462262, bulkBags: bags, cost: (o.priceTonne || 0) > 0 ? tonnes * (o.priceTonne || 0) : 0 }; }; function gravelSVG(live){ live = live || {}; function t(fid, fb, defU){ var e = live[fid]; if(e && e.val !== '') return P2.esc(String(e.val) + ' ' + (e.unit || defU)); return fb; } var lt = t('l', 'Length', 'ft'), wt = t('w', 'Width', 'ft'), dt = t('d', 'Compacted depth', 'in'); var dots = '' + '' + '' + ''; return '' + '' + '' + '' + '' + '' + dots + 'Compacted layer' + P2.dimLabel(wt, 62, 24) + '' + '' + '' + P2.dimLabel(lt, 55, 105) + '' + '' + '' + P2.dimLabel(dt, 128, 100) + ''; } function lenExpr(v, u){ v = P2.num(v); if(u === 'in') return '(' + P2.fmt(v, 1) + ' / 12)'; if(u === 'm') return '(' + P2.fmt(v, 3) + ' x 3.28)'; if(u === 'cm') return '(' + P2.fmt(v, 1) + ' / 30.48)'; if(u === 'mm') return '(' + P2.fmt(v, 0) + ' / 304.8)'; return P2.fmt(v, 2); } function depthExpr(v, u){ v = P2.num(v); if(u === 'ft') return P2.fmt(v, 2); if(u === 'm') return '(' + P2.fmt(v, 3) + ' x 3.28)'; if(u === 'cm') return '(' + P2.fmt(v, 1) + ' / 30.48)'; if(u === 'mm') return '(' + P2.fmt(v, 0) + ' / 304.8)'; return '(' + P2.fmt(v, 1) + ' / 12)'; } P2.register({ id: 'gravel', tab: 'Gravel', title: 'Gravel and Aggregate Base Calculator', formula: 'Loose order volume = Length x Width x Compacted depth x 1.30 (compaction allowance)', diagram: gravelSVG, fields: [ {id:'l', label:'Length', kind:'len', ph:'6', defUnit:'m'}, {id:'w', label:'Width', kind:'len', ph:'3.6', defUnit:'m'}, {id:'d', label:'Compacted depth', kind:'sm', ph:'150', defUnit:'mm'} ], extrasHTML: function(){ return '
' + '
' + '
' + '
kg
' + '
' + P2.priceFieldHTML('priceTonne', 'Price per tonne', '40', 'optional'); }, extraFields: [ {id:'factor', label:'Compaction allowance', kind:'num', optional:true}, {id:'bagKg', label:'Bulk bag weight', kind:'num', optional:true}, {id:'priceTonne', label:'Price per tonne', kind:'usd', optional:true} ], defCur: '£', empty: 'Enter the area and compacted depth above.', toImp: function(vals, units){ var f = parseFloat(vals.factor); if(!isFinite(f) || f <= 0) f = 1.30; var bk = parseFloat(vals.bagKg); if(!isFinite(bk) || bk <= 0) bk = 850; return { l: P2.toFt(vals.l, units.l), w: P2.toFt(vals.w, units.w), d: P2.toIn(vals.d, units.d), factor: f, density: 1.5, bagKg: bk, priceTonne: P2.num(vals.priceTonne) }; }, render: function(imp, vals, units, panel){ var msel = panel.querySelector('.matSel'); var matVal = msel ? msel.value : '1.5'; imp.density = parseFloat(matVal) || 1.5; var matName = matVal==='1.9' ? 'MOT Type 1 / crushed sub-base' : (matVal==='1.6' ? 'Single-size stone' : 'Decorative gravel'); var R = P2.calcGravel(imp); var h = '

Gravel needed

'; h += '
'; h += P2.nwColHTML('Compacted in place', [{icon:'pile', big:P2.fmt(R.compactedYd3), lbl:'Cubic Yards'}, {icon:'pile', big:P2.fmt(R.compactedM3), lbl:'Cubic Metres'}], [[P2.fmt(R.compactedFt3, 1), 'ft3'], ['-', 'after compaction']]); h += P2.nwColHTML('Loose order (with ' + P2.fmt(imp.factor, 2) + ' allowance)', [{icon:'pile', big:P2.fmt(R.looseYd3), lbl:'Cubic Yards'}, {icon:'pile', big:P2.fmt(R.looseM3), lbl:'Cubic Metres'}, {icon:'bags', big:R.bulkBags, lbl:'Bulk Bags (' + P2.fmt(imp.bagKg, 0) + ' kg)'}], [[P2.fmt(R.looseFt3, 1), 'ft3'], [P2.fmt(R.tonnes, 2) + ' t (' + P2.fmt(R.lb, 0) + ' lb)', 'weight']]); h += '
'; if(R.cost > 0) h += P2.subHTML([[P2.CUR + P2.fmt(R.cost), 'estimated material cost']]); var work = lenExpr(vals.l, units.l) + ' x ' + lenExpr(vals.w, units.w) + ' x ' + depthExpr(vals.d, units.d) + ' = ' + P2.fmt(R.compactedFt3, 1) + ' ft3 compacted = ' + P2.fmt(R.compactedYd3) + ' yd3.' + ' Loose order = ' + P2.fmt(R.compactedFt3, 1) + ' x ' + P2.fmt(imp.factor, 2) + ' = ' + P2.fmt(R.looseFt3, 1) + ' ft3 = ' + P2.fmt(R.looseYd3) + ' yd3' + ' (' + P2.fmt(R.looseM3) + ' m3).' + ' Weight = ' + P2.fmt(R.looseM3) + ' m3 x ' + P2.fmt(imp.density, 1) + ' t/m3 (' + matName + ') = ' + P2.fmt(R.tonnes, 2) + ' tonnes.' + ' Bulk bags = ' + P2.fmt(R.kg, 0) + ' / ' + P2.fmt(imp.bagKg, 0) + ' = ' + R.bulkBags + ' bags.'; h += P2.workingHTML(work); h += P2.noteHTML('Estimates only. The 1.30 compaction allowance is a standard estimating allowance for mixed gravel and base material; clean single-size stone compacts less, so adjust the allowance to about 1.15 if that is what you are ordering. Confirm tonnage and bag weights with your supplier.'); h += P2.actionsHTML('gravel') + '
'; var summary = 'Gravel: compacted ' + P2.fmt(R.compactedYd3) + ' yd3, order ' + P2.fmt(R.looseYd3) + ' yd3 loose (' + P2.fmt(R.tonnes, 2) + ' tonnes, ' + R.bulkBags + ' bulk bags). via concretequantity.com/gravel-calculator/'; return {html: h, summary: summary}; }, verified: 'Compaction allowance 1.30 as a standard estimating allowance for mixed base material. Bulk densities: decorative gravel 1.5 t/m3, single-size stone 1.6 t/m3, MOT Type 1 / crushed sub-base 1.9 t/m3 (compacted). UK bulk bag 850 kg.', links: ['driveway', 'slab', 'cost', 'curb', 'readymix', 'circle', 'footing', 'rebar'] }); })(); (function(){ "use strict"; P2.calcBlocks = function(o){ var area = o.l * o.h; var blocksNet = P2.ceilSafe(area * 1.125); var w = 1 + (o.waste||0)/100; var blocksWaste = P2.ceilSafe(blocksNet * w); var mortarBags = P2.ceilSafe(blocksWaste / 13); var groutFt3 = (o.groutEvery > 0) ? (blocksNet * 0.321 / o.groutEvery) : 0; var groutBags = P2.ceilSafe(groutFt3 / 0.60); return { area: area, blocksNet: blocksNet, blocksWaste: blocksWaste, courses: Math.ceil(o.h*12/8), blocksPerCourse: P2.ceilSafe(o.l*12/16), mortarBags: mortarBags, mortarFt3: mortarBags*0.66, groutFt3: groutFt3, groutYd3: groutFt3/27, groutBags: groutBags }; }; function blocksSVG(live){ var bx = 10, by = 15, bw = 20, ch = 12, cols = 6, rows = 4; var fill = '#eef4ff', stroke = '#2563eb'; var h = ''; var c, i, x, y; for(c = 0; c < rows; c++){ y = by + c*ch; if(c % 2 === 0){ for(i = 0; i < cols; i++){ x = bx + i*bw; h += ''; } } else { h += ''; for(i = 0; i < cols - 1; i++){ x = bx + (bw/2) + i*bw; h += ''; } h += ''; } } var wallW = cols*bw, wallH = rows*ch; h += '' + '' + ''; h += '' + '' + ''; var lt = (live && live.l && live.l.val) ? (live.l.val + ' ' + (live.l.unit || 'ft')) : 'Length'; var ht = (live && live.h && live.h.val) ? (live.h.val + ' ' + (live.h.unit || 'ft')) : 'Height'; h += P2.dimLabel(lt, bx + wallW/2, 88); h += P2.dimLabel(ht, 148, by + wallH/2 + 3, 'end'); h += ''; return h; } P2.register({ id: 'blocks', tab: 'Block Wall', title: 'Block Wall Calculator (US and UK blocks)', formula: 'US: Blocks = wall area x 1.125 per ft2 (8x8x16 with 3/8 in joints). UK: Blocks = wall area x 9.9 per m2 (440x215 mm with 10 mm joints).', diagram: blocksSVG, fields: [ {id:'l', label:'Wall length', kind:'len', ph:'20', defUnit:'ft'}, {id:'h', label:'Wall height', kind:'len', ph:'4', defUnit:'ft'} ], extrasHTML: function(){ return P2.wasteRowHTML(10) + '
' + '
' + '
' + '
'; }, toImp: function(vals, units){ return { l: P2.toFt(vals.l, units.l), h: P2.toFt(vals.h, units.h) }; }, render: function(imp, vals, units, panel){ var waste = P2.readWaste(panel); var gsel = panel.querySelector('.groutSel'); var groutEvery = gsel ? parseInt(gsel.value, 10) : 1; var btsel = panel.querySelector('.blockTypeSel'); var isUK = btsel && btsel.value === 'uk'; var R; if(isUK){ var lM = imp.l * 0.3048, hM = imp.h * 0.3048; var areaM2 = lM * hM; var blocksNetUK = P2.ceilSafe(areaM2 * 9.9); var wUK = 1 + (waste||0)/100; var blocksWasteUK = P2.ceilSafe(blocksNetUK * wUK); R = { area: areaM2, areaUnit: 'm2', blocksNet: blocksNetUK, blocksWaste: blocksWasteUK, courses: Math.ceil(hM*1000/225), blocksPerCourse: P2.ceilSafe(lM*1000/450), mortarBags: null, mortarFt3: null, groutFt3: 0, groutYd3: 0, groutBags: 0, isUK: true }; } else { R = P2.calcBlocks({l: imp.l, h: imp.h, waste: waste, groutEvery: groutEvery}); R.isUK = false; R.areaUnit = 'ft2'; } var h = '

Block wall materials

'; var cards = [ {icon:'wall', big:R.blocksWaste, lbl:'Blocks (with '+waste+'% waste)'} ]; if(R.mortarBags !== null){ cards.push({icon:'bags', big:R.mortarBags, lbl:'Mortar Bags (80 lb)'}); } else { cards.push({icon:'bags', big:'--', lbl:'Mortar: see supplier'}); } cards.push({icon:'cube', big:P2.fmt(R.groutYd3), lbl:'Grout (Cubic Yards)'}); h += P2.cardsHTML(cards); var subs = [ [R.blocksNet, 'blocks net'], [R.courses, 'courses'], [R.blocksPerCourse, 'blocks per course'] ]; if(R.mortarBags !== null){ subs.push([P2.fmt(R.mortarFt3, 2), 'ft3 mortar']); } subs.push([R.groutBags, 'x 80 lb bags for grout']); h += P2.subHTML(subs); var areaTxt = isUK ? P2.fmt(R.area, 2) + ' m2' : P2.fmt(R.area, 1) + ' ft2'; var work = 'Wall area = ' + P2.fmt(imp.l, 1) + ' x ' + P2.fmt(imp.h, 1) + ' = ' + areaTxt + '. '; if(isUK){ work += 'Blocks = ' + P2.fmt(R.area, 2) + ' x 9.9 = ' + R.blocksNet + ' (UK 440 x 215 mm blocks, about 10 per m2); ' + 'with ' + waste + '% waste = ' + R.blocksWaste + '. ' + 'Mortar coverage for UK blocks varies by supplier; confirm bag counts with your merchant.'; } else { work += 'Blocks = ' + P2.fmt(R.area, 1) + ' x 1.125 = ' + R.blocksNet + '; ' + 'with ' + waste + '% waste = ' + R.blocksWaste + '. ' + 'Mortar = ' + R.blocksWaste + ' / 13 = ' + R.mortarBags + ' bags (80 lb).'; } if(groutEvery > 0 && !isUK){ work += ' Grout = ' + R.blocksNet + ' x 0.321 = ' + P2.fmt(R.groutFt3, 1) + ' ft3' + ' = ' + P2.fmt(R.groutYd3) + ' yd3' + ' = ' + R.groutBags + ' bags (80 lb).'; } else if(isUK){ work += ' Grout not calculated for UK blocks.'; } else { work += ' No grout selected.'; } h += P2.workingHTML(work); h += P2.noteHTML('Material estimate only, not structural design. Retaining walls, walls carrying loads, and any wall needing lintels or reinforcement design should be checked by a qualified professional. Grout assumes standard 8x8x16 hollow blocks. Confirm quantities with your supplier.'); h += P2.actionsHTML('blocks') + '
'; var summary = 'Block wall: ' + R.blocksWaste + ' blocks' + (R.mortarBags !== null ? ', ' + R.mortarBags + ' mortar bags' : ', mortar see supplier') + ', ' + P2.fmt(R.groutYd3) + ' yd3 grout. via concretequantity.com/block-wall-calculator/'; return {html: h, summary: summary}; }, verified: 'Block coverage 1.125 per ft2 for 8x8x16 CMU with 3/8 in joints; UK 440x215 mm blocks about 9.9 per m2 (10 per m2). Mortar coverage 13 blocks per 80 lb bag per Quikrete Mason Mix #1136 data sheet. Grout 36.1 ft3 per 100 ft2 per CMHA TEK 09-04A (0.321 ft3 per block).', links: ['wall', 'mortar', 'cost', 'slab', 'readymix', 'footing', 'rebar', 'curb'] }); })(); (function(){ "use strict"; P2.calcMortar = function(o){ var per = (o.type === 'block') ? 13 : 37; var w = 1 + (o.waste||0)/100; var bags = P2.ceilSafe(o.n / per * w); return { perBag: per, bags: bags, ft3: bags*0.66, cost: (o.priceBag||0) > 0 ? bags*(o.priceBag||0) : 0 }; }; function mortarSVG(live){ var h = ''; h += ''; h += ''; h += ''; h += '80 lb'; h += 'MORTAR'; h += P2.dimLabel('one bag', 75, 102); h += ''; return h; } P2.register({ id:'mortar', tab:'Mortar', title:'Mortar Calculator for Block and Brick', formula:'Bags = units / coverage per bag (13 blocks or 37 bricks per 80 lb bag)', diagram: mortarSVG, fields:[ {id:'n',label:'Number of units',kind:'num',ph:'90'} ], extrasHTML:function(){ return '
' + P2.wasteRowHTML(10) + P2.priceFieldHTML('priceBag','Price per 80 lb bag','8','optional'); }, extraFields:[ {id:'priceBag',label:'Price per bag',kind:'usd',optional:true} ], empty:'Enter the number of blocks or bricks above.', toImp:function(vals,units){ return { n:P2.num(vals.n)||0, priceBag:P2.num(vals.priceBag) }; }, render:function(imp, vals, units, panel){ var waste = P2.readWaste(panel); var msel = panel.querySelector('.mtypeSel'); var type = msel ? msel.value : 'block'; var R = P2.calcMortar({n:imp.n, type:type, waste:waste, priceBag:imp.priceBag}); var unitName = (type==='ukbrick') ? 'UK bricks' : ((type==='brick') ? 'bricks' : 'blocks'); var h = '

Mortar needed

'; h += P2.cardsHTML([ {icon:'bags', big:R.bags, lbl:'Bags (80 lb)'}, {icon:'cube', big:P2.fmt(R.ft3,2), lbl:'Cubic Feet of Mortar'}, {icon:'wall', big:P2.fmt(imp.n,0), lbl:unitName.charAt(0).toUpperCase()+unitName.slice(1)} ]); if(R.cost>0) h += P2.subHTML([[P2.CUR+P2.fmt(R.cost),'estimated mortar cost']]); var work = P2.fmt(imp.n,0)+' '+unitName+' / '+R.perBag+' per bag = '+P2.fmt(imp.n/R.perBag,2); if(waste>0) work += ', with '+P2.fmt(waste,0)+'% waste'; work += ' = '+R.bags+' bags (80 lb). Mortar volume = '+R.bags+' x 0.66 = '+P2.fmt(R.ft3,2)+' ft3'; h += P2.workingHTML(work); h += P2.noteHTML('Estimates only. Manufacturer coverage ("up to 13 blocks" per Quikrete) assumes tidy joints; real-world use is often higher, so the waste margin matters. Confirm bag counts with your supplier.'); h += P2.actionsHTML('mortar')+'
'; var summary = 'Mortar for '+P2.fmt(imp.n,0)+' '+unitName+': '+R.bags+' bags (80 lb), '+P2.fmt(R.ft3,2)+' ft3. via concretequantity.com/mortar-calculator/'; return {html:h, summary:summary}; }, verified:'Coverage of 13 blocks or 37 bricks per 80 lb bag per Quikrete Mason Mix #1136 data sheet ("up to" figures; allow a 10-15% waste margin). UK standard brick 215 x 102.5 x 65 mm: about 60 per m2 for a half-brick wall.', links:['blocks','wall','cost','slab','readymix','footing','curb','rebar'] }); })(); (function(){ "use strict"; P2.calcReadymix = function(o){ var vol = o.yd3 * (1 + (o.waste||0)/100); var shortApplies = vol < (o.shortMin||0) && (o.shortFee||0) > 0; var ready = vol*(o.priceYd3||0) + (o.delivery||0) + (shortApplies ? (o.shortFee||0) : 0); var bags = P2.ceilSafe(vol*27 / 0.60); var bagTotal = bags*(o.bagPrice||0); return { vol: vol, readyTotal: ready, readyPerYd3: vol>0 ? ready/vol : 0, shortApplies: shortApplies, bags: bags, bagTotal: bagTotal, bagPerYd3: vol>0 ? bagTotal/vol : 0, trucks: P2.ceilSafe(vol/10), winner: (ready < bagTotal) ? 'readymix' : ((bagTotal < ready) ? 'bags' : 'tie'), saving: Math.abs(ready - bagTotal) }; }; function readymixSVG(live){ return '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + 'vs' + ''; } P2.register({ id:'readymix', tab:'Ready Mix vs Bags', title:'Ready Mix vs Bags Cost Calculator', formula:'Ready mix = volume x price + delivery (+ short load fee). Bags = ceil(volume / 0.60) x bag price.', diagram: readymixSVG, fields:[ {id:'y',label:'Concrete needed',kind:'yd3',ph:'3',defUnit:'yd3'} ], extrasHTML:function(){ return P2.wasteRowHTML(10) + P2.priceFieldHTML('priceYd3','Ready mix price per yd3','150','') + P2.priceFieldHTML('delivery','Delivery fee','150','optional') + P2.priceFieldHTML('shortFee','Short load fee','90','optional') + '
yd3
' + P2.priceFieldHTML('bagPrice','Price per 80 lb bag','6','') + P2.priceFieldHTML('mixerHire','Mixer hire (optional)','60','optional'); }, extraFields:[ {id:'priceYd3',label:'Ready mix price',kind:'usd',optional:true}, {id:'delivery',label:'Delivery fee',kind:'usd',optional:true}, {id:'shortFee',label:'Short load fee',kind:'usd',optional:true}, {id:'shortMin',label:'Short load minimum',kind:'num',optional:true}, {id:'bagPrice',label:'Bag price',kind:'usd',optional:true}, {id:'mixerHire',label:'Mixer hire',kind:'usd',optional:true} ], empty:'Enter the concrete volume above.', toImp:function(vals,units){ var u = units.y || 'yd3', yv = parseFloat(vals.y)||0, yd3v; if(u==='m3') yd3v = yv*1.30795; else if(u==='ft3') yd3v = yv/27; else yd3v = yv; var sm = parseFloat(vals.shortMin); if(!isFinite(sm)||sm<0) sm = 3; function dp(v, d){ v = parseFloat(v); return isFinite(v) ? v : d; } return { yd3:yd3v, priceYd3:dp(vals.priceYd3,150), delivery:dp(vals.delivery,150), shortFee:dp(vals.shortFee,90), shortMin:sm, bagPrice:dp(vals.bagPrice,6), mixerHire:dp(vals.mixerHire,0) }; }, render:function(imp, vals, units, panel){ var waste = P2.readWaste(panel); var R = P2.calcReadymix({yd3:imp.yd3, waste:waste, priceYd3:imp.priceYd3, delivery:imp.delivery, shortFee:imp.shortFee, shortMin:imp.shortMin, bagPrice:imp.bagPrice}); var winTxt = R.winner==='readymix' ? 'Ready mix is cheaper by '+P2.CUR+P2.fmt(R.saving) : (R.winner==='bags' ? 'Bags are cheaper by '+P2.CUR+P2.fmt(R.saving) : 'Both options cost about the same'); var workReady = P2.fmt(R.vol)+' yd3 x '+P2.CUR+P2.fmt(imp.priceYd3)+' = '+P2.CUR+P2.fmt(R.vol*imp.priceYd3) +' + '+P2.CUR+P2.fmt(imp.delivery)+' delivery' + (R.shortApplies ? ' + '+P2.CUR+P2.fmt(imp.shortFee)+' short load ('+P2.fmt(R.vol)+' yd3 is under the '+P2.fmt(imp.shortMin)+' yd3 minimum)' : '') +' = '+P2.CUR+P2.fmt(R.readyTotal)+' ('+P2.CUR+P2.fmt(R.readyPerYd3)+' per yd3)'; var workBags = P2.fmt(R.vol)+' yd3 x 27 = '+P2.fmt(R.vol*27)+' ft3, / 0.60 = '+R.bags+' bags' +' x '+P2.CUR+P2.fmt(imp.bagPrice)+' = '+P2.CUR+P2.fmt(R.bagTotal)+' ('+P2.CUR+P2.fmt(R.bagPerYd3)+' per yd3)'; var h = '

Cost comparison

'; h += '
'; h += P2.nwColHTML('Ready mix delivered', [{icon:'truck',big:P2.CUR+P2.fmt(R.readyTotal),lbl:'Total'},{icon:'cube',big:P2.CUR+P2.fmt(R.readyPerYd3),lbl:'Per Cubic Yard'}], [[R.trucks,'truck load'+(R.trucks===1?'':'s')+' (10 yd3 trucks)'],[R.shortApplies ? 'Short load fee applied' : 'No short load fee','']]); h += P2.nwColHTML('Bagged concrete', [{icon:'bags',big:P2.CUR+P2.fmt(R.bagTotal),lbl:'Total'},{icon:'cube',big:P2.CUR+P2.fmt(R.bagPerYd3),lbl:'Per Cubic Yard'}], [[R.bags,'x 80 lb bags'],['Hand mixing labour not included','']]); h += '
'; h += '
Verdict: '+winTxt+'.
'; h += P2.workingHTML('Ready mix: '+workReady+'. Bags: '+workBags+'.'); h += P2.noteHTML('Estimates only. Short-load fees (for example $90) usually apply to orders under about 3 cubic yards. UK barrel mixers carry 6 to 8 m3 per trip. Below about 1 cubic yard bags are usually cheaper; above about 2 cubic yards ready mix usually wins on price and always wins on labour. Hand mixing over 100 bags is a full day of hard labour. Get local quotes: prices vary widely.'); h += P2.actionsHTML('readymix')+'
'; var summary = 'Ready mix vs bags for '+P2.fmt(R.vol)+' yd3: ready mix '+P2.CUR+P2.fmt(R.readyTotal)+', bags '+P2.CUR+P2.fmt(R.bagTotal)+'. '+winTxt+'. via concretequantity.com/ready-mix-vs-bags-calculator/'; return {html:h, summary:summary}; }, verified:'US truck capacity 8 to 10 yd3. UK barrel mixers 6 and 8 m3. Short-load fees (for example $90) apply to orders under about 3 yd3. Bag yield 0.60 ft3 per 80 lb bag per Quikrete.', links:['cost','bags','driveway','slab','gravel','curb','footing','stairs'] }); })();