← All tool references

Finance · not_available

Unit Economics Calculator

Summarize contribution margin and customer-level economics.

Open public tool

Overview

Category
Finance
API mode
not_available
Processing
client-side
Privacy
no-data-stored

Public descriptor

The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.

GET /api/v1/tools/unit-economics-calculator

View this descriptor as JSON

Execute availability

This tool is documented as a browser capability. Its execute route does not produce a server-side result; when execution is enabled, it responds with browser_interaction_required and points callers to the public tool page.

POST /api/v1/tools/unit-economics-calculator/execute

Authentication is not issued during the preview. A bearer API key is planned for execution after launch.

Input schema

object object; additional properties are not accepted.

selling_price · number · required
Enter revenue per unit for this calculation.
variable_cost · number · required
Enter variable cost per unit for this calculation.
customer_acquisition_cost · number · required
Enter customer acquisition cost for this calculation.
units_per_customer · number · required
Enter units per customer for this calculation.
gross_retention · number · required
Enter gross retention for this calculation.
{
    "type": "object",
    "properties": {
        "selling_price": {
            "type": "number",
            "description": "Enter revenue per unit for this calculation.",
            "minimum": 0
        },
        "variable_cost": {
            "type": "number",
            "description": "Enter variable cost per unit for this calculation.",
            "minimum": 0
        },
        "customer_acquisition_cost": {
            "type": "number",
            "description": "Enter customer acquisition cost for this calculation.",
            "minimum": 0
        },
        "units_per_customer": {
            "type": "number",
            "description": "Enter units per customer for this calculation.",
            "minimum": 0
        },
        "gross_retention": {
            "type": "number",
            "description": "Enter gross retention for this calculation."
        }
    },
    "required": [
        "selling_price",
        "variable_cost",
        "customer_acquisition_cost",
        "units_per_customer",
        "gross_retention"
    ],
    "additionalProperties": false
}

Output schema

On a successful execution, schema values appear in data.result.values.

contribution_margin · number
Contribution margin per unit calculated by the tool.
contribution_margin_percent · number
Contribution margin calculated by the tool.
customer_contribution · number
Contribution per customer calculated by the tool.
cac_payback_units · number
Units to recover CAC calculated by the tool.
{
    "type": "object",
    "properties": {
        "contribution_margin": {
            "type": "number",
            "description": "Contribution margin per unit calculated by the tool."
        },
        "contribution_margin_percent": {
            "type": "number",
            "description": "Contribution margin calculated by the tool."
        },
        "customer_contribution": {
            "type": "number",
            "description": "Contribution per customer calculated by the tool."
        },
        "cac_payback_units": {
            "type": "number",
            "description": "Units to recover CAC calculated by the tool."
        }
    },
    "additionalProperties": false
}

Unit Economics Calculator worked example

The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.

curl -X POST "https://utilitypages.org/api/v1/tools/unit-economics-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "selling_price": 80,
    "variable_cost": 35,
    "customer_acquisition_cost": 120,
    "units_per_customer": 5,
    "gross_retention": 85
}'
{
    "ok": true,
    "data": {
        "slug": "unit-economics-calculator",
        "result": {
            "values": {
                "contribution_margin": 45,
                "contribution_margin_percent": 56.25,
                "customer_contribution": 225,
                "cac_payback_units": 2.666666999999999898562919042888097465038299560546875
            },
            "display": {
                "display": "45"
            },
            "warnings": [],
            "assumptions": [],
            "steps": []
        }
    },
    "meta": [],
    "request_id": "req_example_123"
}

Errors

api_not_launched · 503
Returned by the current launch gate for every execute request.
invalid_json · 400
Returned when an enabled execute request does not contain valid JSON.
validation_failed · 422
Returned when a request does not satisfy the input schema.
browser_interaction_required · 422
Returned for browser capability tools instead of inventing a server-side result.
tool_not_found · 404
Returned when a requested descriptor slug does not exist.
execution_failed · 503
Returned when an enabled server-side execution cannot complete.