Unit economics calculator

From eddiebelaval/squire · View interactive version

Unit economics calculator is an AI agent skill from the GitHub repository eddiebelaval/squire. Calculate and optimize unit economics including CAC, LTV, payback periods, and contribution margins

How to use this skill

Skill file

Unit Economics Calculator

Expert unit economics analysis agent that calculates customer acquisition costs, lifetime value, payback periods, and contribution margins. Specializes in SaaS unit economics, e-commerce profitability, and margin optimization.

This skill applies rigorous unit economics frameworks to understand business profitability at the individual customer or transaction level. Perfect for evaluating business viability, optimizing marketing spend, and making pricing decisions.

Core Workflows

Workflow 1: SaaS Unit Economics Analysis

Objective: Calculate complete SaaS unit economics package

Steps:

  1. Customer Acquisition Cost (CAC)

```

CAC = (Sales & Marketing Spend) / (New Customers Acquired)

Include:

```

| Channel | Spend | Customers | CAC |

|---------|-------|-----------|-----|

| Paid Search | | | |

| Paid Social | | | |

| Content/SEO | | | |

| Sales Outbound | | | |

| Referrals | | | |

  1. Lifetime Value (LTV)

```

LTV = ARPU × Gross Margin × Customer Lifetime

Customer Lifetime = 1 / Churn Rate

```

```

LTV = ARPU × Gross Margin / (Churn Rate - Expansion Rate)

```

  1. LTV/CAC Ratio

```

LTV/CAC = Lifetime Value / Customer Acquisition Cost

```

| Ratio | Interpretation |

|-------|----------------|

| < 1:1 | Losing money on customers |

| 1:1 - 3:1 | Underinvesting in growth |

| 3:1 - 5:1 | Healthy, efficient |

| > 5:1 | Could invest more in growth |

  1. CAC Payback Period

```

Payback (months) = CAC / (Monthly Revenue × Gross Margin)

```

| Segment | Target Payback |

|---------|----------------|

| SMB | < 12 months |

| Mid-Market | < 18 months |

| Enterprise | < 24 months |

  1. Contribution Margin

```

Gross Margin = Revenue - COGS

Gross Margin % = (Revenue - COGS) / Revenue

```

```

CM = LTV - CAC

CM Ratio = (LTV - CAC) / LTV

```

Deliverable: Complete SaaS unit economics dashboard

Workflow 2: E-Commerce Unit Economics

Objective: Calculate per-order and per-customer economics

Steps:

  1. Per-Order Economics

```

AOV = Total Revenue / Number of Orders

```

```

CM = AOV - COGS - Variable Costs

CM % = CM / AOV

```

  1. Customer Acquisition Cost

```

CAC = Marketing Spend / New Customers

Channel-specific:

```

  1. Customer Lifetime Value

```

Orders per Customer = Total Orders / Unique Customers

Purchase Frequency = Orders per Year

Customer Lifetime = 1 / Annual Churn

LTV = AOV × Orders per Year × Customer Lifetime × CM %

```

  1. Return and Refund Impact

```

Return Rate = Returns / Orders

Net AOV = AOV × (1 - Return Rate)

Return Cost = Shipping + Restocking + Lost Product Value

```

  1. Break-Even Analysis

```

Break-Even Orders = CAC / CM per Order

Break-Even Time = Break-Even Orders / Orders per Year

```

Deliverable: E-commerce unit economics model

Workflow 3: Marketplace Unit Economics

Objective: Calculate take economics for marketplace businesses

Steps:

  1. Transaction Economics

```

GMV = Number of Transactions × Average Transaction Value

```

```

Take Rate = Net Revenue / GMV

Typical ranges: 10-30% depending on category

```

```

Net Revenue = GMV × Take Rate

```

  1. Cost per Transaction
  1. Contribution Margin per Transaction

```

CM = Net Revenue - Variable Costs per Transaction

CM % = CM / GMV

```

  1. Buyer/Seller Economics
  1. Liquidity Economics

```

Match Rate = Successful Transactions / Total Demand

Higher liquidity → Lower CAC → Better unit economics

```

Deliverable: Marketplace unit economics framework

Workflow 4: Subscription Box Unit Economics

Objective: Calculate unit economics for subscription box businesses

Steps:

  1. Box Economics
  1. Variable Costs

```

Variable Cost per Box = Products + Packaging + Shipping + Processing

Contribution per Box = Price - Variable Costs

Contribution Margin % = Contribution / Price

```

  1. Customer Metrics

```

Lifetime (months) = 1 / Monthly Churn Rate

Example: 5% churn = 20 month lifetime

```

```

LTV = Contribution per Box × Lifetime (months)

```

  1. Acquisition Economics

```

First Box P&L = Revenue - COGS - CAC

Many subscription boxes lose money on first box

```

  1. Break-Even Analysis

```

Break-Even Month = CAC / Contribution per Box

Must retain past break-even to be profitable

```

Deliverable: Subscription box unit economics model

Workflow 5: Unit Economics Optimization

Objective: Identify and implement unit economics improvements

Steps:

  1. Current State Assessment
  1. CAC Reduction Levers
  1. LTV Improvement Levers
  1. Impact Modeling

| Lever | Current | Target | Impact on LTV/CAC |

|-------|---------|--------|-------------------|

| Reduce CAC 20% | | | |

| Reduce Churn 20% | | | |

| Increase ARPU 15% | | | |

| Improve Margin 5pp | | | |

  1. Prioritized Action Plan

Deliverable: Unit economics optimization plan with projected improvements

Quick Reference

| Action | Command/Trigger |

|--------|-----------------|

| Calculate CAC | "Calculate customer acquisition cost" |

| Calculate LTV | "Calculate customer lifetime value" |

| LTV/CAC analysis | "Analyze unit economics" |

| Payback period | "Calculate CAC payback period" |

| Contribution margin | "Calculate contribution margin" |

| Optimize | "How do I improve unit economics?" |

Unit Economics Formulas

Customer Acquisition

| Metric | Formula |

|--------|---------|

| CAC | Total S&M Spend / New Customers |

| Blended CAC | All S&M / All New Customers |

| Paid CAC | Paid Spend / Paid Customers |

| Channel CAC | Channel Spend / Channel Customers |

Customer Value

| Metric | Formula |

|--------|---------|

| LTV (simple) | ARPU × Gross Margin / Churn |

| LTV (with expansion) | ARPU × GM / (Churn - Expansion) |

| Customer Lifetime | 1 / Churn Rate |

| ARPU | Revenue / Customers |

Efficiency Metrics

| Metric | Formula | Benchmark |

|--------|---------|-----------|

| LTV/CAC | LTV / CAC | > 3:1 |

| CAC Payback | CAC / (Monthly Rev × GM) | < 12 mo |

| Magic Number | Net New ARR / Prior Q S&M | > 0.75 |

| Burn Multiple | Net Burn / Net New ARR | < 2 |

Margin Metrics

| Metric | Formula |

|--------|---------|

| Gross Margin | (Revenue - COGS) / Revenue |

| Contribution Margin | (Revenue - COGS - Variable Costs) / Revenue |

| Net Margin | Net Income / Revenue |

Unit Economics Dashboard Template

# Unit Economics Dashboard: [Company]
**Period:** [Date Range]

## Customer Acquisition
| Metric | Value | Benchmark | Status |
|--------|-------|-----------|--------|
| Blended CAC | $ | $ | |
| Paid CAC | $ | $ | |
| Organic CAC | $ | $ | |
| S&M as % of Revenue | % | % | |

## Customer Value
| Metric | Value | Benchmark | Status |
|--------|-------|-----------|--------|
| ARPU | $ | $ | |
| Gross Margin | % | % | |
| LTV | $ | $ | |
| Customer Lifetime | mo | mo | |

## Efficiency
| Metric | Value | Benchmark | Status |
|--------|-------|-----------|--------|
| LTV/CAC | :1 | 3:1+ | |
| CAC Payback | mo | <12 mo | |
| Magic Number | | >0.75 | |

## Trends
| Metric | Last Q | This Q | Change |
|--------|--------|--------|--------|
| CAC | | | |
| LTV | | | |
| LTV/CAC | | | |
| Payback | | | |

## Action Items
1. [Priority 1]
2. [Priority 2]
3. [Priority 3]

Best Practices

Calculation

Benchmarking

Optimization

Integration with Other Skills

Common Pitfalls to Avoid

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.