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 Cost and Quantity

    Input your total batch cost and the number of units produced or purchased. Optionally enter a selling price per unit to see profit metrics.

  2. 2

    Review Results

    See your Average Cost per Unit, Profit per Unit, and Profit Margin cards. The Insights panel shows markup vs margin comparison, total batch profit, breakeven point, and scale impact.

Example Calculation

A small business produces 200 units at a total cost of $5,000 and plans to sell each unit for $35.

Total Cost ($)

5,000

Quantity (Units)

200

Selling Price per Unit (optional) ($)

35

Results

Average Cost per Unit

$25.00

Profit per Unit

$10.00

Profit Margin

28.6%

Insights card shows 40.

Tips

Your 40% Markup Is Only 28.6% Margin

A common pricing error: 40% markup on $25 cost means a $35 selling price, but the profit margin (profit / revenue) is only 28.6%. If your target is a 40% margin, you'd need to sell at $41.67/unit ($25 / 0.60).

You Break Even at 143 Units

At $35/unit, you need to sell 143 of your 200 units to recover the $5,000 cost. The remaining 57 units generate $1,995 in pure profit. If you sell fewer than 143, you lose money on the batch.

Volume Halves the Cost

Doubling production to 400 units (same $5,000 total cost) cuts the average cost to $12.50/unit and raises profit to $22.50/unit (64.3% margin). This works when fixed costs dominate — variable costs per unit stay constant.

Use History to Compare Batches

Each calculation is saved automatically. Click the clock icon to compare different batch sizes, cost levels, or pricing scenarios side by side.

The Average Cost Calculator determines the cost per unit from total costs and quantity, with optional profit metrics when a selling price is provided.

For a $5,000 batch of 200 units at $35 each, the average cost is $25.00/unit with $10.00 profit per unit (28.6% margin, 40.0% markup).

This tool helps businesses set prices, evaluate profitability, and plan production volumes.

The Math Behind Average Cost

Average Cost per Unit = Total Cost / Quantity
Profit per Unit = Selling Price - Average Cost
Profit Margin = (Profit per Unit / Selling Price) x 100
Markup = (Profit per Unit / Average Cost) x 100

Margin and markup use different denominators — selling price vs cost — which is why 40% markup equals only 28.6% margin.

💡 To understand the full scope of your business's financial performance, our Accounting Profit Calculator can help you calculate net income after all expenses.

Calculating Unit Cost and Profit for a Production Batch

A manufacturer produces 200 units at a total cost of $5,000, selling each for $35:

  1. Average Cost: $5,000 / 200 = $25.00 per unit
  2. Profit per Unit: $35 - $25.00 = $10.00
  3. Profit Margin: $10.00 / $35 x 100 = 28.6%
  4. Markup: $10.00 / $25.00 x 100 = 40.0%

Total batch profit: $10.00 x 200 = $2,000 on $7,000 total revenue.

The breakeven point is 143 units ($5,000 / $35) — selling all 200 units covers costs with 57 units of pure profit remaining.

💡 For a specific application in manufacturing, our 3D Print Business Profit Margin Calculator can help optimize pricing for custom products.

Pricing Strategies Based on Unit Cost

The average cost per unit is the foundation for pricing.

Cost-plus pricing adds a target margin: a 28.6% margin on $25 gives a $35 price ($25 / (1 - 0.286)).

A 40% margin would require $41.67 ($25 / 0.60).

Unit cost analysis also informs volume decisions — doubling to 400 units (same fixed costs) cuts average cost to $12.50, enabling either lower competitive prices or higher margins.

Cost Accounting and Inventory Valuation

Cost accounting standards govern how businesses track and report average costs.

Under GAAP, inventory can be valued using FIFO (First-In, First-Out), LIFO (Last-In, First-Out), or weighted-average cost — each producing different average cost figures that affect Cost of Goods Sold and balance sheet inventory values.

IFRS does not permit LIFO.

The weighted-average method, which this calculator uses, is the most straightforward: total cost divided by total units, providing a single blended cost regardless of purchase timing.

Frequently Asked Questions

What is average cost per unit?

Average cost per unit is total cost divided by total quantity. A $5,000 batch of 200 units costs $25.00/unit. This includes both fixed costs (rent, equipment) and variable costs (materials, labor). It's the minimum price you must charge per unit to avoid a loss.

How does average cost differ from marginal cost?

Average cost ($25/unit for 200 units) is total cost spread across all units. Marginal cost is the additional cost of producing one more unit — often lower than average cost because fixed costs are already covered. A company should produce more as long as marginal revenue exceeds marginal cost.

What's the difference between markup and margin?

Markup is profit as a percentage of cost: $10 / $25 = 40%. Margin is profit as a percentage of selling price: $10 / $35 = 28.6%. Markup is always higher than margin for the same dollar profit. If you want a 30% margin, divide cost by 0.70 ($25 / 0.70 = $35.71), not cost × 1.30.

Why is knowing your average cost important for pricing?

Average cost sets your pricing floor. At $25/unit, any price below $25 means a loss per unit sold. Cost-plus pricing adds a target margin — a 28.6% margin on $25 gives a $35 price. Without knowing your true average cost, you risk underpricing and eroding profitability.

How do economies of scale affect average cost?

Fixed costs (rent, equipment, salaries) spread across more units as production increases. Doubling from 200 to 400 units with the same $5,000 total cost cuts the average to $12.50/unit. However, variable costs (materials) scale linearly — if materials cost $10/unit, 400 units costs $9,000 total ($22.50/unit average).

What is the breakeven point?

The breakeven point is the number of units you must sell to cover total costs. At $35/unit selling price and $5,000 total cost: $5,000 / $35 = 143 units. Below 143 sales, you lose money; above 143, each additional unit at $35 generates $35 in pure profit (since fixed costs are already covered).