Skip to content
Hands-on Mentor
ENTR
Back to blog

Break-even point: how to calculate it with a formula and Python

The break-even point is the number of sales where revenue equals cost. Learn the formula, fixed and variable costs, and a campus club fair example with Python.

4 min read

The break-even point is the number of sales at which your total revenue equals your total cost, so you make no profit and no loss. The formula is fixed costs ÷ (price per unit − variable cost per unit). This calculation shows quickly whether an idea makes financial sense: how many do I need to sell to cover my costs, and is that realistic?

What are fixed and variable costs?

Cost typeDefinitionExample
Fixed costStays the same however many you sellTable fee, equipment, design
Variable costGrows with every unit soldMaterials, packaging, shipping

To get the right answer, sort every cost into one of these two groups.

How do you calculate the break-even point? An example

Maya wants to sell handmade candles at a campus club fair. The numbers are fictional.

  • Fixed costs: molds and equipment $90 plus a table fee of $60, so $150 in total
  • Variable cost of one candle (wax, wick, scent, box): $4.50
  • Selling price: $7.50

Step 1: find the contribution margin. This is how much each sale adds toward the fixed costs.

contribution margin = $7.50 − $4.50 = $3.00

Step 2: find the break-even quantity.

break-even = $150 ÷ $3.00 = 50 candles

The first 50 candles only pay for the costs. From the 51st candle, every sale earns $3.00 of profit. Here is the same calculation in Python:

fixed_costs = 150
price = 7.50
variable_cost = 4.50

contribution = price - variable_cost
break_even = fixed_costs / contribution
print(f"Break-even: {break_even:.0f} candles")

for quantity in [30, 50, 80]:
    profit = quantity * price - (fixed_costs + quantity * variable_cost)
    print(quantity, profit)

When you run it, you get:

OutputBreak-even: 50 candles
30 -60.0
50 0.0
80 90.0

At 30 candles Maya loses $60. At 50 she breaks even. At 80 she earns $90.

Is the break-even number realistic?

The calculation is easy. The real question is whether you can sell 50 candles. Suppose the fair lasts two days and 400 people walk past the table each day:

  • That is 800 people in total, and 50 of them must buy: about 6.25%.
  • Watching similar tables and counting how many people stop and buy shows whether that rate is realistic.

If 6% looks reachable, the idea makes financial sense. If you needed 30%, you would need to rethink it.

How do you lower the break-even point?

Change one number at a time and recalculate:

ChangeExampleNew break-even
Raise the price$7.50 to $8.50 (contribution $4.00)37.5, round up to 38 candles
Lower the variable cost$4.50 to $3.75 (contribution $3.75)40 candles
Lower the fixed costBorrow some equipment ($150 to $100)33.3, round up to 34 candles

Round up when the result has a fraction, because you cannot sell half a candle. A higher price lowers the break-even point but may also lower the share of people who buy. Think about every change together with how customers will react.

How many sales do you need for a target profit?

The same formula works for a goal beyond covering costs. Add your target profit to the fixed costs:

required sales = (fixed costs + target profit) ÷ contribution margin

If Maya wants $75 of profit from the fair, she needs ($150 + $75) ÷ $3.00 = 75 candles. That is about 9.4% of the 800 people who walk past.

What are the limits of the break-even calculation?

  • Your own time has value: hours of pouring candles are worth something. A calculation without your labor makes profit look better than it is.
  • Unsold products: the formula assumes you sell every candle you make. If Maya makes 80 and sells 50, the materials for the other 30 candles (30 × $4.50 = $135) are a loss.
  • Price is not fixed: if you give a discount, the contribution margin falls and the break-even point rises.

What are common mistakes?

  • Mixing fixed and variable costs: dividing the table fee across candles and treating it as a variable cost.
  • Dividing by price instead of contribution: $150 ÷ $7.50 = 20 candles is a wrong answer.
  • Skipping the reality check: if the result says 50, think about where 50 sales will come from.
  • Counting your own time as free.

Real sales can also involve tax and registration rules. Check the rules where you live.

What to read next

The [Entrepreneurship course](/courses/entrepreneurship) covers this in its lesson on [fixed cost and break-even](/learn/entrepreneurship/fixed-cost-break-even). You can build the loop from this post in Python with [Python for loop](/blog/python-for-loop). Before you spend on a fair table, think about a smaller test in [What is an MVP?](/blog/what-is-an-mvp).

  • #entrepreneurship
  • #break-even
  • #costs
  • #pricing
All posts