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 fulfillment 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, covers the variable cost ratio, connects variable costs to fulfillment economics, and then does the thing most explanations skip: ties everything 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.

According to Stripe, variable costs grow with each sale you make or item you produce — contrasted with fixed costs such as a warehouse lease or flat-rate software subscriptions, which stay constant regardless of how much you make or sell.

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

  • Raw materials or cost of goods sold (COGS)
  • Shipping and fulfillment fees
  • Payment-processing and transaction fees
  • Per-order pick, pack, and fulfillment labor
  • Sales commissions
  • Paid-ad spend allocated per acquired order
  • Packaging materials (boxes, mailers, cushioning, labels)
  • Returns processing — an often-overlooked variable line

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.

Variable fulfillment cost formula

Fulfillment deserves its own formula because it is often the largest variable line after COGS. According to Racklify, the full variable cost per order breaks down as:

Variable cost per order = picking cost + packing cost + packaging materials + average carrier fee + handling fees + average return provision

And according to EPLogistics, the monthly total follows a clean structure:

Monthly fulfillment cost = Fixed costs + (Variable cost per order × Number of orders)

For print-on-demand sellers this simplifies considerably — your POD supplier (Printify or Printful) bundles printing, pick-and-pack, and base shipping into a single per-order line, so you typically have two variable fulfillment inputs: the supplier's production-plus-shipping charge and any payment-processing fee. See our full Printful T-shirt cost breakdown and Printify hoodie cost breakdown for current per-product numbers.

According to Fulfillrite, industry average total fulfillment cost per order ranges from roughly $3–$15 for domestic shipments when using a third-party logistics provider, with pick-and-pack fees typically in the $2.50–$5.00 per order range.

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, included in supplier charge): $5.00
  • Payment processing: $1.46
  • Packaging materials and handling: $1.40

The payment-processing figure comes from the widely published Stripe standard rate of 2.9% plus $0.30 per transaction; 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.

One important addition for print-on-demand: according to Racklify, a return provision should be built into each order's variable cost. Returns add processing costs that genuinely scale with volume, so ignoring them understates your true per-order cost.

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. According to Stripe, common variable costs include COGS, hourly fulfillment labor, paid acquisition costs, and payment-processing fees — all expenses that show up every time a customer clicks "buy."

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. According to WAPI, fixed costs are those that stay the same regardless of how many items you ship — warehouse rent, salaried employees, equipment costs. 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 tier 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.

Another nuance for 3PL and POD sellers: according to LivePlan, warehouse space costs can become variable when using a fulfillment center, because you only pay for what you use that month. In practice, treat storage as semi-variable and watch it separately from per-order costs.

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.

According to Racklify, per-order variable cost can also be refined by SKU, channel, or fulfillment center for more accurate margins. That granularity matters once you're running multiple product lines or selling across channels with different shipping profiles.

Variable cost ratio

A subtopic that many top-ranking results now cover — and that feeds directly into pricing decisions — is the variable cost ratio.

The variable cost ratio expresses your variable production costs as a percentage of net sales:

Variable cost ratio = Total variable costs ÷ Net revenue

Using the worked example: $23,860 ÷ $40,000 (1,000 orders × $40) = 0.597, or roughly 60%. That means about 60 cents of every revenue dollar is consumed by variable costs before fixed costs or profit enter the picture — a quick gut-check for whether pricing is sustainable.

A falling ratio over time means you're keeping more of each dollar; a rising one signals cost pressure that pricing or volume alone won't fix. This connects tightly to the net profit margin benchmark guide, which shows what healthy ratios look like by segment.

Hidden variable costs that kill margins

Current top results flag a consistent blind spot: sellers undercount their variable costs because they focus on the obvious lines and miss the hidden ones. According to EPLogistics, most ecommerce businesses underestimate fulfillment expenses by missing warehouse storage fees, pick-and-pack labor, packaging materials, and return processing costs that quietly eat into profits.

According to Gobeeping, relying on a headline pick-and-pack fee to compare fulfillment setups is a common strategic error that hides the true cost of doing business — real profitability depends on an all-in figure that encompasses inbound handling, storage, returns processing, and internal management time.

For POD sellers, the equivalent blind spots are:

  • Ad spend per order: According to Stripe, paid acquisition costs tied to each transaction should be tracked alongside other variable inputs when calculating unit margins.
  • Return shipping and restocking: Even with POD's no-inventory model, customer returns create variable costs through refund processing and replacement orders.
  • Payment platform fees on discounted orders: If you run a BOGO or sitewide discount, the fee percentage applies to the original price but your margin compresses — a mismatch worth modeling.

See the Printful pricing calculator walkthrough and Printify on Etsy guide for channel-specific cost structures that affect the variable total.

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.

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. According to Stripe, "in ecommerce, profit doesn't necessarily come from volume — it comes from what's left after variable costs are paid." A sale can look great at the revenue line and still leave you almost nothing once every variable cost — including ads — is netted out.

According to Racklify, variable fulfillment cost directly reduces the per-order contribution margin, which is the amount available to cover fixed costs and generate profit — so if your variable fulfillment cost climbs, you either need to increase prices, reduce other costs, or accept lower margins.

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. For practical ways to reduce the per-order acquisition cost side of the equation, see our guide on CRO techniques and our walkthrough of increasing AOV with AI — both raise contribution margin without touching your cost of goods.

Pricing strategy and variable costs

Knowing your variable cost per unit is the floor for any pricing decision. You need to understand your costs before you can identify the best pricing strategy — whether you price on a margin percentage or a fixed dollar amount above cost per item.

For print-on-demand sellers, three pricing approaches are most common:

  • Cost-plus pricing: Variable cost per unit + target markup. Simple but ignores what the market will bear.
  • Margin-based pricing: Set a target contribution margin percentage and back-calculate the required price. More useful when ad costs fluctuate.
  • Competitive pricing: Anchor to market prices and work backward to see whether your cost structure supports that price profitably.

All three require an accurate variable cost figure as the starting point — which is exactly what the formula above provides. For POD sellers comparing supplier economics, see Printify vs Gelato and our guide on how to start a print-on-demand business, both of which cover how supplier cost differences flow through to contribution margin.

Fulfillment speed also affects pricing headroom: faster shipping options carry higher variable costs, and according to Fulfillrite, shipping cost can vary significantly by carrier, weight, and destination. Our Printful shipping times and costs guide shows the current cost tiers so you can model them accurately.

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 into a live data warehouse and computes the true per-order economics for every sale — COGS, shipping, fees, and allocated ad spend already netted out. Victor, PodVector's AI employee, reads that live data, proposes a typed action with its rationale and expected effect, and — with your approval — executes the move on the Shopify side. He can reprice products to a target margin, adjust discounts, raise your free-shipping threshold, and more. He reads your Meta Ads and Google Ads accounts and proposes changes, but all write actions happen on Shopify. PodVector is built specifically for intermediate-to-advanced print-on-demand sellers on Shopify who fulfill through Printify or Printful.

See how PodVector fits into a full POD operation in our PodVector strategy overview.

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. A third version — Total variable cost = Total cost − Fixed cost — is useful when your books give you totals and you know your fixed base. All three describe the same relationship between volume and cost.

What is the variable fulfillment cost formula?

According to Racklify, variable cost per order = picking cost + packing cost + packaging materials + average carrier fee + handling fees + average return provision. For POD sellers, the POD supplier bundles most of these into one per-order charge, so the formula simplifies to: supplier production-and-shipping cost + payment processing fee + any allocated ad spend per order.

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.

What is the variable cost ratio?

The variable cost ratio is total variable costs divided by net revenue. It expresses what percentage of each revenue dollar is consumed by variable costs. A lower ratio means more revenue is available to cover fixed costs and generate profit.

Is labor a fixed or variable cost?

It depends on the type. According to Stripe, hourly fulfillment staff whose time scales with order volume is variable — the cost rises as your order count does. 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. According to Racklify, variable fulfillment cost directly reduces per-order contribution margin; if it climbs, you must raise prices, cut other costs, or accept lower margins. In the example above, a $40 order carries $23.86 in variable costs, leaving $16.14 before ad spend 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. According to Racklify, per-order variable cost can be refined by SKU, channel, or fulfillment center for more accurate margins.

What hidden variable costs do ecommerce sellers miss?

According to EPLogistics, most ecommerce businesses underestimate fulfillment expenses by missing storage fees, pick-and-pack labor, packaging materials, and return processing. For POD sellers specifically, the most common omissions are per-order ad spend, return shipping costs, and payment fees on discounted orders where the margin compresses but the fee percentage holds.