The variable costs formula is Total variable cost = Quantity of output × Variable cost per unit. It adds up every expense that rises and falls with volume — materials, shipping, payment fees, per-order labor — so you can subtract them from revenue and see what each sale actually leaves behind.

If you only know your revenue and your total costs, you know almost nothing about whether the next order makes you money. The variable costs formula is the tool that fixes that. It isolates the expenses tied to volume, which is the first step toward knowing your true per-order profit.

This guide gives you the formula, walks a full numeric example, separates variable from fixed costs, and then does the thing most explanations skip: connects variable costs to the profit on each sale.

What are variable costs?

A variable cost is any expense that changes in direct proportion to how much you produce or sell. Sell twice as many units and the total roughly doubles; sell nothing and it drops to zero. That volume-linked behavior is the whole definition.

Common variable costs for a physical-product or ecommerce business include:

  • Raw materials or cost of goods sold (COGS)
  • Shipping and carrier fees
  • Payment-processing fees
  • Per-order pick, pack, and fulfillment labor
  • Sales commissions
  • Paid-ad spend allocated per acquired order

For a deeper breakdown of what does and doesn't count, see our companion piece on what variable costs are. Here we focus on the math.

The variable costs formula

The core formula is simple:

Total variable cost = Quantity of output × Variable cost per unit

Two supporting formulas fill in the gaps depending on what you already know:

  • Variable cost per unit = Total variable cost ÷ Output. Use this when you have a lump-sum cost and need the per-unit figure.
  • Total variable cost = Total cost − Fixed cost. Use this when your books give you totals and you know your fixed base.

All three describe the same relationship from different angles. The one you reach for depends on which numbers you have in front of you.

Worked example: calculating variable cost per unit

Say you run a print-on-demand apparel store, and you want the variable cost of one average order that sells for $40. Build it up line by line.

  • Blank garment plus printing (COGS): $16.00
  • Shipping (carrier): $5.00
  • Payment processing: $1.46
  • Pick and pack labor: $1.40

The payment-processing figure comes from a standard online card rate of about 2.9% plus 30 cents per transaction, which is the widely published Stripe standard fee; on a $40 order that is (0.029 × $40) + $0.30 = $1.46.

Add the four lines: $16.00 + $5.00 + $1.46 + $1.40 = $23.86 variable cost per order.

Now scale it with the main formula. If you ship 1,000 of these orders in a month:

1,000 orders × $23.86 = $23,860 total variable cost.

Notice what did not appear in that number: rent, your software subscriptions, and your salary. Those are fixed, and mixing them in is the most common way sellers miscalculate their margins.

Fixed vs variable costs

The split between fixed and variable costs is what makes profit analysis possible. Get the line-drawing right and every downstream number behaves.

Variable costs scale with volume. In the example above, that is the $23.86 per order — it only exists when an order exists.

Fixed costs stay flat in the short run no matter how many units you move. Say your store carries $4,000 a month in rent, apps, and a base retainer. That $4,000 is owed whether you sell one order or one thousand.

One nuance worth flagging: some "fixed" costs are really step costs. A second warehouse or an added shift is fixed within a range, then jumps when you cross a volume threshold. Treat those as fixed only inside the range you're currently operating in.

Average variable cost

Average variable cost (AVC) is the total variable cost spread across every unit produced.

Average variable cost = Total variable cost ÷ Output

From the example: $23,860 ÷ 1,000 = $23.86 per order. Here it matches the per-unit cost exactly, because every order carries the same variable load.

In the real world AVC drifts as your inputs change. Bulk material discounts pull it down; a carrier rate hike or a spike in returns pushes it up. Watching AVC trend over time is often an earlier warning than watching total costs, because it strips out the noise of changing volume — a theme we expand on in projected cost vs actual cost.

From variable costs to real profit

This is the part generic explanations leave out. Variable costs matter because they feed contribution margin — revenue minus all variable costs — which is the honest measure of what a sale contributes before fixed costs.

Take the example order again:

$40.00 revenue − $23.86 variable cost = $16.14 contribution margin per order (a margin ratio of about 40%).

But you haven't paid to acquire that order yet. Ad spend is also variable — it rises with the orders you chase. Say you allocate $10 in ad spend per order. Then:

$16.14 − $10.00 = $6.14 in profit per order after acquisition.

That $6.14 is the number that actually determines whether scaling helps or hurts. A sale can look great at the revenue line, carry a respectable 40% margin, and still leave you almost nothing once every variable cost — including ads — is netted out. If you want to push further into how each extra order compounds, our incremental profit formula guide picks up exactly here.

Break-even: where variable costs meet fixed costs

Once you know contribution margin per unit, break-even falls out directly.

Break-even units = Fixed costs ÷ Contribution margin per unit

Using the after-acquisition margin of $6.14 and $4,000 in monthly fixed costs: $4,000 ÷ $6.14 = 652 orders to cover your fixed base. Every order past 652 is profit; every order short of it is a loss you're funding from somewhere else.

Lower your variable cost per unit — cheaper fulfillment, a better processor rate, tighter ad efficiency — and contribution margin rises, which drops your break-even. That single lever is why disciplined variable-cost tracking beats chasing top-line revenue.

Where PodVector fits

Calculating variable cost per order by hand is fine once. Doing it live, across hundreds of orders, as your product costs, shipping, fees, and ad spend all move — that's where a spreadsheet quietly falls behind.

PodVector connects your Shopify, Meta Ads, Google Ads, Printify, and Printful accounts and computes the true per-order profit for every sale — COGS, shipping, fees, and allocated ad spend already netted out. It's not a dashboard you have to interpret. Victor, its AI operator, analyzes that live data and proposes moves; with your approval he takes action on the Shopify side, and he never touches your ad account.

See your true per-order profit with PodVector.

Knowing your real margin per order is also what makes retention worth chasing — repeat buyers carry no acquisition cost, so their contribution margin runs higher. That connection is spelled out in our guide on how to improve customer retention rate.

FAQs

What is the variable costs formula?

Total variable cost = Quantity of output × Variable cost per unit. If you already have a lump-sum figure, you can also work backward: Variable cost per unit = Total variable cost ÷ Output. Both describe the same relationship between volume and cost.

What is the difference between fixed and variable costs?

Variable costs change with how much you produce or sell — materials, shipping, payment fees, per-order labor, and ad spend. Fixed costs stay constant in the short run regardless of volume, such as rent, salaries, and software subscriptions. The clean split between the two is what lets you calculate contribution margin and break-even.

Is labor a fixed or variable cost?

It depends on the type. Hourly pick-and-pack labor that scales with order volume is variable, because you pay more of it when you ship more. A salaried manager whose pay doesn't move with volume is a fixed cost. The test is always whether the expense rises and falls with output.

How do variable costs affect profit?

They set your contribution margin — revenue minus all variable costs — which is what each sale leaves toward covering fixed costs and profit. In the example above, a $40 order carries $23.86 in variable costs, leaving $16.14 before ads and $6.14 after a $10 acquisition cost. Cutting variable cost per unit raises margin and lowers your break-even point.

Is average variable cost the same as variable cost per unit?

They're the same only when every unit carries an identical variable load. Average variable cost is total variable cost divided by output, so it smooths across all units. Variable cost per unit can differ order to order once bulk discounts, returns, or shipping surcharges enter, at which point AVC and the per-unit figure diverge.