Get 90% off your plan for your first 6 months*

What is a variable cost? Definition, formula, and examples

Learn what variable costs are, how to calculate them, and why they matter for your business.

Published Thursday 23 July 2026

Table of contents

Key takeaways

  • A variable cost is any business expense that rises or falls in direct proportion to how much you produce or sell, such as raw materials, shipping, and sales commissions.
  • You can calculate your total variable cost by multiplying the cost per unit by the number of units produced, helping you set prices and forecast cash flow more accurately.
  • Understanding the difference between variable and fixed costs lets you find your break-even point and make smarter pricing, budgeting, and growth decisions.
  • Tracking variable costs regularly with accounting software gives you real-time visibility into profit margins so you can act quickly when expenses shift.

What is a variable cost?

A variable cost is a business expense that changes in direct proportion to how much you produce or sell. When production goes up, variable costs go up. When production slows down, these costs decrease too.

Unlike fixed costs such as rent or insurance, variable costs are tied directly to your business activity. If you run a bakery and bake 100 loaves instead of 50, you'll spend more on flour, yeast, and packaging. That extra spending is your variable cost in action.

The basic variable cost formula is:

Total variable cost = variable cost per unit x total number of units produced

For example, if each unit costs $5 in materials and you produce 1,000 units, your total variable cost is $5,000. This formula helps you predict expenses at different production levels and set prices that cover your costs.

Examples of variable costs

Variable costs show up across nearly every part of your business. They fall into a few common categories depending on your industry and operations.

Direct materials and production costs

These are the raw inputs that go directly into what you make or sell. The more you produce, the more you spend on these materials.

  • Raw materials: wood, fabric, metal, ingredients, or components
  • Packaging supplies: boxes, labels, wrapping, and containers
  • Manufacturing supplies: lubricants, cleaning agents, and disposable tools

Labor costs

Not all labor is a variable cost, but pay that's directly tied to output counts as one. These costs scale with how busy your business gets.

  • Hourly wages for production or service staff
  • Overtime pay during high-demand periods
  • Temporary or seasonal workers hired for peak production

Sales and distribution costs

The more you sell and ship, the higher these expenses climb. They're directly connected to your sales volume.

  • Sales commissions and performance bonuses
  • Shipping and delivery fees
  • Credit card processing and transaction fees

Marketing and operational costs

Some marketing and operational expenses rise alongside your sales activity. These tend to fluctuate month to month based on demand.

  • Pay-per-click advertising and social media ad spend
  • Utility costs that increase with production, such as electricity for equipment
  • Equipment maintenance tied to usage levels

How to calculate variable costs

Calculating your variable costs helps you set profitable prices, create accurate budgets, and forecast your cash flow. Cost accounting methods can help you track these figures systematically. There are 3 common formulas to know.

Total variable cost

Your total variable cost is the full amount you spend on variable expenses for a given production level. Use this formula to find it:

Total variable cost = variable cost per unit x number of units produced

For example, if you make candles and each candle costs $3 in wax, wicks, fragrance, and packaging, producing 500 candles gives you a total variable cost of $1,500.

Variable cost per unit

If you already know your total variable costs, you can work backward to find your cost per unit. This is useful when you're reviewing expenses and want to know exactly how much each product costs to make.

Variable cost per unit = total variable costs / number of units produced

Using the candle example, if you spent $1,500 on variable costs to produce 500 candles, your variable cost per unit is $3.

Average variable cost

Average variable cost shows how your per-unit costs change at different production levels. It's useful for spotting economies of scale. As you produce more units, your average variable cost might drop because you're getting volume discounts on materials or spreading certain expenses across more products.

Average variable cost = total variable costs / total output

If you negotiate a bulk discount on wax and your total variable cost for 1,000 candles is $2,700 instead of $3,000, your average variable cost drops from $3 to $2.70 per candle.

Why variable costs matter for your business

Knowing your variable costs gives you the financial clarity to make confident decisions about pricing, growth, and day-to-day operations. Here's how they affect the areas that matter most to your business.

Pricing decisions

Your variable costs set the floor for your pricing. If you don't cover your variable cost per unit, you lose money on every sale. By knowing exactly what each product or service costs to deliver, you can set prices that protect your margins while staying competitive.

Budgeting and forecasting

Variable costs make your budget more flexible and realistic. Instead of guessing at future expenses, you can tie your spending projections directly to your sales forecasts as part of your small business budget. If you expect to sell 20% more next quarter, you can estimate that your variable costs will rise by roughly the same amount.

That connection between sales and costs matters in practice: in 2025, US small business sales growth swung from +0.9% in one quarter to +4.1% the next, and variable costs like inventory and shipping moved right along with it. With small businesses averaging just 2.4% sales growth for the year, there's less room for variable cost overruns.

Break-even analysis

Your break-even point is where your revenue covers all your costs, both fixed and variable. To find it, you need to know your variable cost per unit. The formula is:

Break-even point (in units) = fixed costs / (selling price per unit - variable cost per unit)

This tells you the minimum number of units you need to sell before your business starts turning a profit.

Cash flow management

Variable costs move with your revenue, which can be both helpful and challenging for cash flow. During slow periods, your variable costs drop and ease the pressure on your bank account. During busy stretches, you'll need enough cash on hand to cover the spike in material purchases, shipping, and labor before the revenue comes in.

Variable costs vs. fixed costs

Variable costs and fixed costs behave differently, and understanding the distinction helps you manage your finances and plan for growth.

Fixed costs stay the same regardless of how much you produce or sell. You pay them whether your business has a record month or a quiet one. Fixed costs are often grouped as business overheads. Common fixed costs include:

  • Rent or mortgage payments for your workspace
  • Insurance premiums
  • Salaries for permanent staff
  • Software subscriptions with flat monthly fees
  • Loan repayments

Variable costs, by contrast, rise and fall with your production or sales volume. You'll spend more on materials, shipping, and commissions during busy periods and less during slow ones.

Here's a practical way to think about it: if you closed your doors for a month but kept the lights on, your fixed costs would still be due. Your variable costs would drop to near zero because you're not producing or selling anything.

Most businesses carry a mix of both. Knowing which costs are fixed and which are variable helps you calculate your break-even point, set your prices, and understand how scaling up or down will affect your bottom line.

What are semi-variable costs?

A semi-variable cost, also called a mixed cost, has both a fixed component and a variable component. You pay a base amount regardless of activity, plus an additional amount that changes with production or usage.

Your electricity bill is a common example. You pay a flat monthly connection fee (the fixed part) plus charges based on how much power your equipment uses (the variable part). The more you produce, the higher your electricity bill climbs, but it never drops below that base charge.

Other examples of semi-variable costs include:

  • Vehicle costs: fixed registration and insurance, plus fuel and maintenance that vary with mileage
  • Phone and internet plans: a base subscription fee plus overage charges for extra data or usage
  • Equipment leases with usage-based surcharges
  • Sales team compensation: a base salary plus commission tied to sales volume

Recognizing semi-variable costs helps you budget more accurately. Separate the fixed portion from the variable portion so you can predict how each expense will change as your business grows.

What are stepped costs?

A stepped cost stays fixed within a certain range of activity, then jumps to a higher level once you cross a threshold. It behaves like a fixed cost up to a point, then increases in a step pattern.

For example, 1 supervisor might handle a team of up to 10 production workers. If you hire an 11th worker, you'll need a 2nd supervisor, and your supervisory labor cost jumps up. The cost stays flat again until you pass the next threshold.

Other examples of stepped costs include:

  • Warehouse space: you lease 1 unit until you outgrow it, then lease a 2nd
  • Equipment: 1 machine handles a certain volume, but a 2nd machine is needed when demand exceeds that capacity
  • Delivery vehicles: you operate with 1 van until routes require a 2nd

Stepped costs matter for growth planning. If you're approaching a threshold, you can evaluate whether the additional revenue from scaling up will justify the jump in cost.

How to manage variable costs

Managing your variable costs effectively can improve your profit margins and give you more financial stability. Here are practical steps you can take.

Negotiate with suppliers

Building strong supplier relationships can lead to better pricing. Ask about volume discounts, early-payment incentives, or longer-term contracts that lock in lower rates. Even small reductions in material costs add up across hundreds or thousands of units. Explore more cost saving ideas for your business.

Track costs consistently

Review your variable costs regularly so you can spot trends and catch unexpected increases early. Use accounting software to categorize expenses automatically and compare costs month over month. Real-time tracking gives you the data you need to act quickly.

Reduce waste in production

Look for ways to use materials more efficiently. Small changes in your production process, like reducing scrap, optimizing cutting patterns, or improving quality control, can lower your per-unit variable cost without affecting the quality of your product.

Adjust your product mix

If some products have significantly higher variable costs than others, consider shifting your sales focus toward higher-margin items. Analyzing your contribution margin for each product helps you identify which ones deliver the most profit per sale.

Plan for seasonal swings

If your business has seasonal peaks, plan your purchasing and staffing ahead of time. Buying materials in advance when prices are lower, or cross-training employees to handle busy periods without overtime, can help you keep variable costs under control.

Track your variable costs with Xero

Keeping a clear picture of your variable costs helps you price your products accurately, protect your margins, and plan for growth. With Xero's cloud-based accounting software, you can categorize expenses automatically, monitor costs in real time, and generate reports that show exactly where your money goes.

Xero connects to your bank and pulls in transactions daily, so your cost data stays up to date. Custom reports let you compare variable costs across periods, track trends, and make confident decisions backed by real numbers. Get one month free.

FAQs on variable costs

Here are some frequently asked questions about variable costs.

What is the formula for variable cost?

The basic formula is: total variable cost = variable cost per unit x number of units produced. You can also work backward by dividing total variable costs by units produced to find your per-unit cost.

Is marginal cost the same as variable cost?

They're related but not identical. Marginal cost is the expense of producing 1 additional unit, while variable cost refers to the total or per-unit cost across all units. Marginal cost can change at different production levels due to factors like volume discounts or overtime pay.

Can a variable cost become a fixed cost?

In some cases, yes. If you sign a long-term supply contract with a flat monthly rate for materials, that cost becomes fixed for the contract period. The nature of the cost depends on how the expense is structured, not what the expense is.

How do variable costs affect profitability?

Lower variable costs per unit mean a higher contribution margin on each sale, which improves your profitability. If variable costs rise faster than your revenue, your margins shrink. Tracking them closely helps you adjust pricing or reduce waste before profits take a hit.

Do service-based businesses have variable costs?

Yes. Service businesses have variable costs such as contractor payments, travel expenses, and project-specific software licenses. Any expense that scales with the number of clients served or projects completed counts as a variable cost.

Handy resources

Advisor directory

You can search for experts in our advisor directory

Find an advisor

Xero Small Business Guides

Discover resources to help you do better business

See all our guides & articles

Get one month free

Try Xero’s fast, simple, powerful online accounting software for your small business

Get one month free

Disclaimer

This glossary is for small business owners. The definitions are written with their requirements in mind. More detailed definitions can be found in accounting textbooks or from an accounting professional. Xero does not provide accounting, tax, business or legal advice.