viewof hardwarePrice = Inputs.range([0, 100000], {
value: 50000,
step: 1000,
label: "Hardware Revenue per Customer ($)"
})
viewof annualSaaS = Inputs.range([0, 50000], {
value: 12000,
step: 500,
label: "Annual SaaS Revenue per Customer ($)"
})
viewof customerLifetime = Inputs.range([1, 10], {
value: 5,
step: 0.5,
label: "Expected Customer Lifetime (years)"
})
viewof hardwareMargin = Inputs.range([0, 100], {
value: 40,
step: 5,
label: "Hardware Gross Margin (%)"
})
viewof saasMargin = Inputs.range([0, 100], {
value: 80,
step: 5,
label: "SaaS Gross Margin (%)"
})
viewof cac = Inputs.range([0, 100000], {
value: 30800,
step: 1000,
label: "Customer Acquisition Cost (CAC) ($)"
})
// Calculations
hardwareGrossProfit = hardwarePrice * (hardwareMargin / 100)
saasGrossProfit = (annualSaaS * customerLifetime) * (saasMargin / 100)
totalLTV = hardwareGrossProfit + saasGrossProfit
ltvCacRatio = totalLTV / cac
// Results display with IEEE colors
html`<div style="background: linear-gradient(135deg, #2C3E50 0%, #16A085 100%); padding: 24px; border-radius: 8px; color: white; margin-top: 20px;">
<h3 style="margin-top: 0; color: white; border-bottom: 2px solid rgba(255,255,255,0.3); padding-bottom: 12px;">Calculated Results</h3>
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 16px;">
<div style="background: rgba(255,255,255,0.15); padding: 16px; border-radius: 6px; border-left: 4px solid #E67E22;">
<div style="font-size: 0.9em; opacity: 0.9; margin-bottom: 4px;">Hardware Gross Profit</div>
<div style="font-size: 1.8em; font-weight: bold;">${"$"}${hardwareGrossProfit.toLocaleString()}</div>
</div>
<div style="background: rgba(255,255,255,0.15); padding: 16px; border-radius: 6px; border-left: 4px solid #3498DB;">
<div style="font-size: 0.9em; opacity: 0.9; margin-bottom: 4px;">SaaS Gross Profit (${customerLifetime}y)</div>
<div style="font-size: 1.8em; font-weight: bold;">${"$"}${saasGrossProfit.toLocaleString()}</div>
</div>
<div style="background: rgba(255,255,255,0.15); padding: 16px; border-radius: 6px; border-left: 4px solid #16A085;">
<div style="font-size: 0.9em; opacity: 0.9; margin-bottom: 4px;">Total Customer LTV</div>
<div style="font-size: 1.8em; font-weight: bold;">${"$"}${totalLTV.toLocaleString()}</div>
</div>
<div style="background: rgba(255,255,255,0.15); padding: 16px; border-radius: 6px; border-left: 4px solid ${ltvCacRatio >= 3 ? '#16A085' : '#E74C3C'};">
<div style="font-size: 0.9em; opacity: 0.9; margin-bottom: 4px;">LTV:CAC Ratio</div>
<div style="font-size: 1.8em; font-weight: bold;">${ltvCacRatio.toFixed(2)}:1</div>
<div style="font-size: 0.85em; margin-top: 8px; opacity: 0.95;">
${ltvCacRatio >= 3 ? '✓ Healthy (≥3:1 target met)' : 'Below 3:1 minimum threshold'}
</div>
</div>
</div>
<div style="margin-top: 20px; padding: 16px; background: rgba(255,255,255,0.1); border-radius: 6px;">
<div style="font-size: 0.95em; line-height: 1.6;">
<strong>Interpretation:</strong> ${ltvCacRatio >= 3 ?
`With an LTV:CAC ratio of ${ltvCacRatio.toFixed(2)}:1, this business model is sustainable. You generate ${"$"}${ltvCacRatio.toFixed(2)} in lifetime value for every $1 spent acquiring customers.` :
`At ${ltvCacRatio.toFixed(2)}:1, this is below the 3:1 minimum. Consider: (a) reducing CAC through channel partners, (b) increasing prices, or (c) extending customer lifetime beyond ${customerLifetime} years.`
}
</div>
</div>
</div>`LTV:CAC Ratio Tool
LTV:CAC Ratio Tool
animation
iot
business
Try Change Expected Customer Lifetime (years) and Customer Acquisition Cost (CAC) ($) to compare the ratio. Then press Calculate LTV:CAC ratio.
Observe After pressing Calculate LTV:CAC ratio, watch total customer LTV and the LTV:CAC ratio as Expected Customer Lifetime (years) changes.
Explain Describe how Hardware Gross Margin (%) changes hardware gross profit and total customer LTV after you press Calculate LTV:CAC ratio.
Technical boundaries. Customer LTV adds hardware gross profit to annual SaaS gross profit multiplied by customer lifetime. Revenue and margins remain constant across that lifetime.
LTV:CAC Ratio Tool
Adjust the inputs below to calculate customer lifetime value, customer acquisition cost, and the critical LTV:CAC ratio for your IoT business model.