Build your retirement plan for free.Explore Plan Builder →

Average Cost Calculator

Enter your total costs and quantity to calculate the average cost per unit. Add an optional selling price to see profit per unit, profit margin, and markup percentage.
Luis GonzalezCreated by Luis GonzalezLast updated:

How to Use This Calculator

  1. 1

    Enter Total Cost ($)

    Add the costs you want to allocate across the batch or purchase. Use a consistent definition of cost for every unit.

  2. 2

    Enter Quantity (Units)

    Type the number of units produced or purchased. The calculator divides total cost by this quantity.

  3. 3

    Optionally enter Selling Price per Unit ($)

    Enter a price above zero to see profit per unit, profit margin, markup, and total profit. Leave the field at 0 to show average cost only.

Example Calculation

A business spends $5,000 on 200 units and plans to sell each unit for $35.

Total Cost ($)

5,000

Quantity (Units)

200

Selling Price per Unit ($)

35

Results

Average Cost per Unit

$25.00

Total Cost

$5,000.00

Profit per Unit

$10.00

Profit Margin

28.6%

Markup

40.0%

Total Profit

$2,000.00

Tips

At a $30 selling price, the margin is 16.7%

Change Selling Price per Unit ($) from $35 to $30. With average cost unchanged at $25, profit falls to $5 per unit and total profit falls to $1,000.

At a $40 selling price, total profit rises to $3,000

Change Selling Price per Unit ($) to $40 while keeping Total Cost ($) and Quantity (Units) unchanged. Compare the resulting margin and markup rather than treating them as the same percentage.

Doubling quantity without changing total cost halves unit cost

Change Quantity (Units) from 200 to 400 while leaving Total Cost ($) at $5,000. The calculated average cost falls to $12.50 per unit, assuming the entered total cost truly stays fixed.

What this calculator estimates

Average cost per unit is total cost divided by the number of units. When you enter a selling price, the calculator also estimates unit profit, profit margin, markup, and total profit; it does not forecast demand or subtract costs that you leave out.

How the calculation works

Average cost per unit = Total cost / Quantity
Profit per unit = Selling price per unit − Average cost per unit
Profit margin = Profit per unit / Selling price per unit × 100
Markup = Profit per unit / Average cost per unit × 100
Total profit = Profit per unit × Quantity

In the example, $5,000 / 200 = $25 average cost per unit. At a selling price of $35, profit is $35 − $25 = $10 per unit. The margin is $10 / $35 × 100 = 28.6%, while markup is $10 / $25 × 100 = 40%. Total profit is $10 × 200 = $2,000.

Margin and markup use different denominators, so they are not interchangeable. The weighted average cost method calculator can help when inventory is purchased in batches at different costs.

How price changes affect profit

The table keeps unit cost at $25 and quantity at 200. It changes only the selling price.

Selling price per unit Profit per unit Profit margin Markup Total profit
$30 $5 16.7% 20.0% $1,000
$35 $10 28.6% 40.0% $2,000
$40 $15 37.5% 60.0% $3,000

Use the table to test a price decision, then check whether the assumed quantity will actually sell at that price. If a price increase reduces sales volume, total profit can move differently from the fixed-quantity calculation. The 3D print business profit margin calculator can help examine a broader business-margin scenario.

What to include in total cost

The average is only as useful as the cost pool you enter. Decide whether Total Cost ($) includes materials, labor, packaging, freight, overhead, or other expenses, then use that definition consistently across batches. The SBA’s startup cost guidance distinguishes common business cost categories that owners may need to plan for.

This calculation assumes every unit carries the same average cost. It does not account for different unit costs, spoilage, returns, or unsold stock. If costs vary between batches, use a method that matches your inventory records rather than treating one average as the exact cost of every item.

When to use a different calculator

Frequently Asked Questions

How do I calculate average cost per unit?

Divide total cost by the number of units. For example, if a batch costs $5,000 and contains 200 units, average cost is $5,000 ÷ 200 = $25 per unit.

What is the difference between profit margin and markup?

Profit margin divides profit by selling price, while markup divides profit by cost. If an item costs $25 and sells for $35, its $10 profit is a 28.6% margin ($10 ÷ $35) and a 40% markup ($10 ÷ $25).

Does average cost include labor, rent, and other overhead?

Only if you include those expenses in Total Cost ($). This calculator spreads the entered total evenly over the entered quantity; it does not decide which costs belong in the batch or allocate overhead by itself.

Is the profit result the same as net profit?

No, it is the difference between the entered selling price and average unit cost, multiplied by quantity. It does not subtract expenses such as shipping, payment processing, taxes, marketing, or unsold inventory unless you included them in Total Cost ($).

What selling price should I choose?

Use a price that covers the costs you intend to recover and fits customer demand and competing offers. This calculator shows the margin at a chosen price, but it does not estimate demand or identify a market-clearing price; the SBA guide to researching markets and competitors can help with that separate decision.