Skip to content
PithLab

↑↓ to move · Enter to open · Esc to close

Break-Even Calculator API

Break-even point: units and revenue needed to cover fixed costs, with contribution margin and an optional target profit.

POST /api/v1/tools/break-even-calculatorMCP break_even_calculatorCalculators

Find how many units you need to sell, and how much revenue you need, to cover your fixed costs. Optionally add a target profit to plan sales.

Input

Send these as a JSON object. Unknown fields are rejected.

fixedCosts
Total fixed costs for the period (rent, salaries…), in currency units. (number, 0 to …, required)
price
Selling price per unit. Must be greater than the variable cost. (number, 0 to …, required)
variableCost
Variable cost per unit (materials, shipping…). (number, 0 to …, required)
targetProfit
Optional profit to aim for; adds the units and revenue needed to reach it. (number, 0 to …)
curl https://pithlab.com/api/v1/tools/break-even-calculator \n  -H "Authorization: Bearer $PITHLAB_KEY" \n  -H "Content-Type: application/json" \n  -d '{"fixedCosts":10000,"price":50,"variableCost":30,"targetProfit":5000}'
Example response
{
  "ok": true,
  "result": {
    "contributionPerUnit": 20,
    "contributionRatio": 40,
    "units": 500,
    "unitsToSell": 500,
    "revenue": 25000,
    "target": {
      "profit": 5000,
      "units": 750,
      "unitsToSell": 750,
      "revenue": 37500
    },
    "text": "Break even at 500 units (500 exact), revenue 25,000.00; each unit contributes 20.00"
  }
}