Unit Economics Calculator: CAC, LTV, Contribution Margin, and Payback Period
unit economicscustomer acquisitionSaaS metricsecommerce metricsfinancial modeling

Unit Economics Calculator: CAC, LTV, Contribution Margin, and Payback Period

CCalculation.shop Editorial Team
2026-12-01
7 min read

Learn how to calculate CAC, LTV, contribution margin, payback period, and LTV-to-CAC ratio for ecommerce and subscription models.

A unit economics calculator helps you test whether each customer, order, or subscription contributes enough value to justify its acquisition and service costs. This guide explains how to calculate customer acquisition cost (CAC), contribution margin, customer lifetime value (LTV), payback period, and the LTV-to-CAC ratio, with practical formulas, assumptions, worked examples, and a spreadsheet layout you can reuse when prices, costs, or retention change.

Overview

Unit economics reduces a business model to a repeatable economic unit. Depending on the business, that unit may be a new customer, an order, a subscription account, or an individual product sale. The objective is not to produce one impressive metric. It is to understand how revenue, variable costs, acquisition spending, retention, and cash timing interact.

A useful unit economics calculator normally reports five measures:

  • Customer acquisition cost (CAC): the average cost of acquiring one new customer.
  • Contribution margin: the revenue left after costs that vary with an order, customer, or period of service.
  • Customer lifetime value (LTV): an estimate of contribution generated by a customer over the period they remain active.
  • Customer payback period: the time required to recover CAC through contribution margin.
  • LTV-to-CAC ratio: a comparison of estimated customer value with acquisition cost.

These measures are decision tools, not guarantees. A result is only as reliable as the definitions and assumptions behind it. For example, an LTV estimate based on an optimistic retention assumption can look attractive even when actual cohorts are unprofitable. Keep the calculation consistent, label assumptions clearly, and compare forecasts with observed results.

How to estimate

1. Calculate CAC

The basic CAC formula is:

CAC = Total acquisition costs ÷ Number of new customers acquired

Include the costs assigned to the same period and channel. Depending on your reporting purpose, acquisition costs may include advertising, sales commissions, campaign software, agency or contractor costs, promotional discounts used to win customers, and the relevant portion of sales or marketing payroll. If you include only advertising spend, label the result as paid-media CAC rather than blended CAC.

For channel analysis, calculate CAC separately for each channel. For overall planning, use a blended figure that includes the acquisition costs you expect the business to continue carrying.

2. Calculate contribution margin

Contribution margin focuses on the money available to cover fixed costs and profit after variable costs:

Contribution margin per unit = Net revenue per unit − Variable cost per unit

Contribution margin percentage = Contribution margin per unit ÷ Net revenue per unit × 100

Net revenue should reflect discounts, refunds, returns, and other reductions you decide to model. Variable costs may include product costs, payment processing, shipping, fulfillment, usage-based infrastructure, customer support tied directly to usage, and sales commissions. Do not mix fixed overhead into contribution margin unless you have deliberately chosen a different cost definition.

3. Estimate LTV

For a simple repeat-purchase model, one practical formula is:

LTV = Average order value × Purchase frequency × Expected customer lifespan × Contribution margin percentage

For a subscription model, a commonly used simplified version is:

LTV = Average revenue per account per period × Contribution margin percentage ÷ Periodic churn rate

This subscription formula assumes a relatively stable churn rate and uses a reciprocal churn estimate for expected duration. It is a planning shortcut, not a substitute for cohort analysis. If retention varies significantly by tenure, customer segment, contract type, or channel, calculate LTV from monthly or annual cohort data instead.

4. Calculate payback period

The customer payback period formula is:

Payback period in periods = CAC ÷ Contribution margin per customer per period

Use the same period throughout the calculation. If CAC is $120 and the customer produces $30 of contribution margin per month, the simple payback period is four months. A monthly model should also account for the timing of payments, refunds, implementation costs, and delayed revenue where those items materially affect cash recovery.

5. Calculate the LTV-to-CAC ratio

The formula is:

LTV-to-CAC ratio = LTV ÷ CAC

A higher ratio indicates more estimated contribution value per acquisition dollar, but there is no universal ratio that fits every business. The acceptable result depends on growth objectives, gross or contribution margin, cash availability, retention confidence, payback requirements, and the cost of serving customers. Always review the ratio alongside payback period and cash flow rather than treating it as a standalone target.

Business-model comparison

ModelPrimary unitImportant inputsUseful LTV approach
EcommerceCustomer or orderAverage order value, repeat rate, returns, fulfillment, payment feesOrders per customer × contribution per order
SaaS subscriptionAccount or subscriberRecurring revenue, churn, expansion, onboarding, support, infrastructureRecurring contribution per period ÷ churn, checked against cohorts
Repeat-purchase serviceCustomerPurchase frequency, service cost, retention, commissions, discountsContribution per purchase × expected purchases

Inputs and assumptions

A reliable CAC LTV calculator separates historical inputs from forecast assumptions. Use a monthly spreadsheet with one assumptions area and one results area. A practical template can include these columns:

  • Period: month or quarter.
  • New customers: customers attributed to the period.
  • Acquisition spend: paid media, sales costs, commissions, and included marketing expenses.
  • Revenue per customer: net of modeled discounts, refunds, and returns.
  • Variable cost per customer: product, fulfillment, payment, usage, and directly attributable service costs.
  • Retention or churn: observed historical rate where available, with a clearly labeled forecast assumption.
  • Scenario: conservative, base, or optimistic.

Use consistent definitions. If CAC includes sales payroll, do not compare it with an LTV that excludes the costs needed to deliver the service. If the business serves several segments, calculate unit economics by segment or channel before combining them. A blended average can hide a profitable segment subsidizing an unprofitable one.

For a spreadsheet, place inputs in cells such as B3:B12 and reference them in formula cells rather than typing assumptions repeatedly. Add checks for zero customers, zero revenue, negative margins, and missing retention data. Keep an assumptions log with the date, source of each input, and reason for any change. This makes the model easier to audit and update.

Unit economics also connects to broader planning. Use a break-even analysis to translate contribution into the volume needed to cover fixed costs, and review the cash flow forecast template when a long payback period may create a funding gap.

Worked examples

Ecommerce example

Assume a store has an average net order value of $80, variable costs of $50 per order, an average of three orders per customer, and an estimated customer lifespan of one year. Contribution per order is $30, so contribution margin is 37.5% ($30 ÷ $80). Estimated customer contribution is:

$30 × 3 orders = $90 LTV

If the store spends $18,000 to acquire 300 customers, CAC is $60. The estimated LTV-to-CAC ratio is 1.5 ($90 ÷ $60). This result should be tested against actual repeat-purchase behavior, return rates, and the timing of the orders. If many customers make only one purchase, the forecast LTV is overstated.

Subscription example

Assume a subscription produces $50 of monthly revenue per account. Variable monthly service costs are $20, giving monthly contribution of $30 and a 60% contribution margin. If monthly churn is modeled at 5%, the simple LTV estimate is:

$50 × 60% ÷ 5% = $600

If CAC is $180, the estimated ratio is 3.33 and the simple payback period is six months ($180 ÷ $30). These outputs are sensitive to churn. A modest change in retention can materially change LTV, so the spreadsheet should include sensitivity cases rather than presenting $600 as a fixed fact.

Scenario table

ScenarioCACMonthly contributionPaybackInterpretation
Conservative$220$258.8 monthsHigher acquisition cost and weaker contribution
Base$180$306 monthsCurrent planning assumption
Optimistic$160$344.7 monthsRequires evidence before adoption

Scenario analysis is more useful than a single forecast because it shows which assumptions deserve attention. If the conservative case is not financially workable, the next decision may involve pricing, onboarding, channel mix, variable cost reduction, or retention—not simply increasing marketing spend.

When to recalculate

Recalculate unit economics whenever a core input changes. Review the model when you change pricing, discounts, packaging, payment terms, product costs, fulfillment, service levels, sales commissions, or acquisition channels. Revisit it after a material change in retention, churn, repeat-purchase frequency, refund behavior, or customer mix.

Set a regular review cadence that matches the speed of the business. A fast-changing campaign may need weekly monitoring, while a stable planning model may be reviewed monthly or quarterly. Separate early campaign observations from mature cohort results; a new channel may have incomplete retention data and should not be treated as fully proven.

Before using the results in a budget or investor-facing forecast, check three things: the customer definition is consistent, contribution costs are complete, and the forecast is reconciled with actual cohorts or accounting data where available. Also test sensitivity to CAC, margin, and retention. For cost definitions, the gross margin versus markup guide can help prevent pricing terminology from entering the model incorrectly. If acquisition work includes sales labor, compare the assumptions with the payroll cost estimator.

Finally, record the date of each recalculation and the assumptions used. A unit economics calculator becomes most valuable when it is a living management tool: update it after pricing or cost changes, compare forecast with actual performance, and use the gaps to improve the next decision.

Related Topics

#unit economics#customer acquisition#SaaS metrics#ecommerce metrics#financial modeling
C

Calculation.shop Editorial Team

Business Calculator Editors

Senior editor and content strategist. Writing about technology, design, and the future of digital media. Follow along for deep dives into the industry's moving parts.