Edge vs Cloud Cost Calculator
Try Change Edge data reduction factor, then press Calculate.
Observe After Calculate, compare Cost Comparison Results and Estimated simple payback.
Explain Describe how Edge hardware cost ($) affects Estimated simple payback after Calculate.
Calculate
Reset
Technical boundaries. Monthly data uses 30 days. Cloud compute uses 0.05 times 8760 per year; edge cloud compute uses 500 per year, with edge hardware added to the total.
Edge vs Cloud Cost Calculator
Use this calculator to estimate whether edge processing or cloud-only architecture is more cost-effective for your deployment.
viewof numSensors = Inputs. range ([10 , 5000 ], {value : 500 , step : 10 , label : "Number of sensors" })
viewof samplesPerSec = Inputs. range ([1 , 10000 ], {value : 1000 , step : 100 , label : "Samples/sec per sensor" })
viewof bytesPerSample = Inputs. range ([1 , 32 ], {value : 2 , step : 1 , label : "Bytes per sample" })
viewof cloudStorageCost = Inputs. range ([0.01 , 0.10 ], {value : 0.023 , step : 0.001 , label : "Cloud storage ($/GB/month)" })
viewof bandwidthCost = Inputs. range ([0.01 , 0.20 ], {value : 0.09 , step : 0.01 , label : "Bandwidth cost ($/GB)" })
viewof edgeReduction = Inputs. range ([0.5 , 0.99 ], {value : 0.95 , step : 0.01 , label : "Edge data reduction factor" })
viewof edgeHardwareCost = Inputs. range ([500 , 20000 ], {value : 5000 , step : 500 , label : "Edge hardware cost ($)" })
viewof yearsAnalysis = Inputs. range ([1 , 5 ], {value : 3 , step : 1 , label : "Analysis period (years)" })
rawBytesPerSec = numSensors * samplesPerSec * bytesPerSample
rawGBPerMonth = (rawBytesPerSec * 86400 * 30 ) / (1000 * 1000 * 1000 )
months = yearsAnalysis * 12
// Cloud-only costs
cloudStorage = rawGBPerMonth * cloudStorageCost * months
cloudBandwidth = rawGBPerMonth * bandwidthCost * months
cloudCompute = 0.05 * 8760 * yearsAnalysis
cloudTotal = cloudStorage + cloudBandwidth + cloudCompute
// Edge-hybrid costs
edgeGBPerMonth = rawGBPerMonth * (1 - edgeReduction)
edgeStorage = edgeGBPerMonth * cloudStorageCost * months
edgeBandwidth = edgeGBPerMonth * bandwidthCost * months
edgeCloudCompute = 500 * yearsAnalysis
edgeTotal = edgeHardwareCost + edgeStorage + edgeBandwidth + edgeCloudCompute
savings = cloudTotal - edgeTotal
savingsPct = (savings / cloudTotal) * 100
paybackMonths = (savings + edgeHardwareCost > 0 ) ? (edgeHardwareCost / ((savings + edgeHardwareCost) / months)) : Infinity
html `<div style="background: var(--bs-light, #f8f9fa); padding: 1.5rem; border-radius: 8px; border-left: 4px solid #3498DB; margin-top: 0.5rem;">
<h4 style="color: var(--bs-body-color); margin-top: 0;">Cost Comparison Results</h4>
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;">
<div style="background: var(--bs-body-bg); padding: 1rem; border-radius: 6px; border: 1px solid #E74C3C;">
<strong style="color: #E74C3C;">Cloud-Only ( ${ yearsAnalysis} years)</strong><br/>
<span style="color: var(--bs-body-color);">Storage: $ ${ cloudStorage. toFixed (0 )} </span><br/>
<span style="color: var(--bs-body-color);">Bandwidth: $ ${ cloudBandwidth. toFixed (0 )} </span><br/>
<span style="color: var(--bs-body-color);">Compute: $ ${ cloudCompute. toFixed (0 )} </span><br/>
<strong style="color: var(--bs-body-color);">Total: $ ${ cloudTotal. toFixed (0 )} </strong>
</div>
<div style="background: var(--bs-body-bg); padding: 1rem; border-radius: 6px; border: 1px solid #16A085;">
<strong style="color: #16A085;">Edge-Hybrid ( ${ yearsAnalysis} years)</strong><br/>
<span style="color: var(--bs-body-color);">Hardware: $ ${ edgeHardwareCost. toFixed (0 )} </span><br/>
<span style="color: var(--bs-body-color);">Storage: $ ${ edgeStorage. toFixed (0 )} </span><br/>
<span style="color: var(--bs-body-color);">Bandwidth: $ ${ edgeBandwidth. toFixed (0 )} </span><br/>
<span style="color: var(--bs-body-color);">Compute: $ ${ edgeCloudCompute. toFixed (0 )} </span><br/>
<strong style="color: var(--bs-body-color);">Total: $ ${ edgeTotal. toFixed (0 )} </strong>
</div>
</div>
<div style="margin-top: 1rem; padding: 0.75rem; background: ${ savings > 0 ? '#d4edda' : '#f8d7da' } ; border-radius: 6px;">
<strong style="color: ${ savings > 0 ? '#155724' : '#721c24' } ;">
${ savings > 0 ? 'Edge-hybrid saves $' + savings. toFixed (0 ) + ' (' + savingsPct. toFixed (1 ) + '%) over ' + yearsAnalysis + ' years' : 'Cloud-only is cheaper by $' + Math . abs (savings). toFixed (0 ) + ' -- edge hardware cost exceeds savings' }
</strong><br/>
<span style="color: var(--bs-body-color);">Monthly raw data: ${ rawGBPerMonth. toFixed (1 )} GB | Edge-reduced: ${ edgeGBPerMonth. toFixed (1 )} GB</span><br/>
<span style="color: var(--bs-body-color);"> ${ Number . isFinite (paybackMonths) ? 'Estimated simple payback: ' + paybackMonths. toFixed (1 ) + ' months' : '' } </span>
</div>
</div>`
Back to the chapter