What is variance analysis in accounting? Formulas and examples

- What is variance analysis?
- Variance analysis formulas
- Variance analysis example: Breaking a revenue variance into price and volume
- Types of variance analysis
- Variance analysis vs. flux analysis
- How to perform variance analysis
- Common pitfalls in variance analysis
- Investigate variances faster with Ramp Stack

Variance analysis is the process of comparing actual financial results to a budget, forecast, or prior period, then explaining why they differ. A variance number on its own doesn't tell your CFO what to do next, but the explanation behind it does.
A $2,400 favorable revenue variance, for example, can conceal a $15,000 volume gain offset by a $12,600 price concession, and those two stories call for very different responses.
What is variance analysis?
Variance analysis quantifies the difference between actual and planned financial results, such as a budget, forecast, or standard cost, and identifies the drivers behind that difference.
At a smaller company, one person in accounting or financial planning and analysis (FP&A) often runs it after month-end close as part of the monthly or quarterly review. The goal is to explain performance, update the forecast, and give department heads ownership of any corrective action.
A variance in accounting is the gap between an actual amount and its benchmark on a single line. A favorable variance means revenue came in above plan or costs came in below plan, and an unfavorable variance is the reverse.
Finance teams label results favorable (F) or unfavorable (U) instead of positive or negative because the sign misleads on expense lines. A positive expense variance means you spent more than planned, which is bad news.
| Line type | Favorable | Unfavorable |
|---|---|---|
| Revenue | Actual > Budget | Actual < Budget |
| Expense | Actual < Budget | Actual > Budget |
Label every line F or U before you share it, so nobody has to work out whether a positive number is good or bad.
Variance analysis formulas
The core variance analysis formula is:
Variance = Actual – Budget (or Standard)
The percentage form is:
Variance % = (Actual – Budget) / Budget * 100
How you read the sign depends on the line type. A positive result is favorable on revenue and unfavorable on expenses, which is why you label each result F or U.
| Variance | Formula | What it tells you |
|---|---|---|
| Basic (budget) variance | Actual – Budget | The dollar gap between what happened and what you planned |
| Variance % | (Actual – Budget) / Budget * 100 | How large the gap is relative to the size of the line |
| Revenue variance | Actual revenue – Budgeted revenue | The net change in top-line results before you split out causes |
| Sales price variance | (Actual price – Budgeted price) * Actual volume | How much pricing or discounting moved revenue |
| Sales volume variance | (Actual volume – Budgeted volume) * Budgeted price | How much selling more or fewer units moved revenue |
| Sales mix variance | Actual total units * Σ[(Actual mix % – Budgeted mix %) * Budgeted unit margin] | How a shift between higher- and lower-margin products moved profit |
| Profit variance | Actual profit – Budgeted profit | The bottom-line result leadership reads first |
| Cost (expense) variance | Actual cost – Budgeted cost | Where spending ran over or under plan by line, department, or vendor |
| Flexible budget variance | Actual results – Flexible budget results | How well you controlled spending or pricing at the volume you hit |
| Sales activity variance | Flexible budget results – Static (master) budget results | How much of the gap comes from volume alone |
| Price/rate variance (materials, labor) | (Actual price – Standard price) * Actual quantity | Whether you paid more or less per unit or hour than standard |
| Efficiency/usage variance (materials, labor) | (Actual quantity – Standard quantity allowed) * Standard price | Whether you used more or less input than standard for your output |
Run the revenue and cost formulas every month, and use the component formulas only on lines that cross your materiality threshold.
Variance analysis example: Breaking a revenue variance into price and volume
A net revenue variance close to zero can hide large movements in price and volume, and splitting it shows you which one to act on. A subscription software company budgeted 2,000 subscriptions at $150 per month for the last month of the quarter. It sold 2,100 subscriptions at an average of $144 after discounting.
| Line | Budget | Actual | Variance | F/U |
|---|---|---|---|---|
| Subscriptions | 2,000 | 2,100 | 100 | F |
| Price per subscription | $150 | $144 | –$6 | U |
| Revenue | $300,000 | $302,400 | $2,400 | F |
- Total revenue variance: $302,400 (2,100 * $144) – $300,000 (2,000 * $150) = $2,400 F, or 0.8%
- Price variance: ($144 – $150) * 2,100 = $12,600 U
- Volume variance: (2,100 – 2,000) * $150 = $15,000 F
The price and volume variances add back to the $2,400 F total. If you're presenting this to your CFO, the commentary might sound like this: "Revenue looks on plan, but that hides two large movements. The price variance is unfavorable by $12,600 because the sales team discounted to close more deals, and the extra 100 subscriptions are covering for it."
The next question is whether the discounting was a one-off push at quarter-end or a new run rate the forecast should reflect. A small net variance can hide two large offsetting ones, so split every material variance into components before you report it.
Types of variance analysis
Every type of variance analysis compares actual results to a benchmark, and the types differ only in which benchmark or component you isolate. Pick the type based on the question leadership is asking.
Budget variance (static budget)
A static budget variance compares actual results to the original budget you set before the period started. The formula is:
Static budget variance = Actual – Static budget
Use it as your first pass each month, because it's the number leadership checks against the plan they approved. It mixes volume effects with spending effects, so a busy month can look like overspending.
Flexible budget variance
A flexible budget variance compares actual results to the budget restated at the volume you hit. The formula is:
Flexible budget variance = Actual – (Actual volume * Budgeted rate per unit)
Restating the budget splits the static-budget variance into a sales activity variance and a flexible budget variance. Take the subscription company's hosting and support cost, budgeted at $20 per subscription.
| Comparison | Amount | Variance |
|---|---|---|
| Static budget (2,000 * $20) | $40,000 | Baseline |
| Flexible budget (2,100 * $20) | $42,000 | $2,000 U sales activity variance |
| Actual | $43,500 | $1,500 U flexible budget variance |
The $2,000 U sales activity variance comes from serving 100 extra subscriptions. The $1,500 U flexible budget variance is overspending at actual volume, and together they make up the $3,500 U static-budget variance.
Use the flexible budget whenever volume moves enough to distort the static comparison, because it separates the cost of growth from overspending.
Revenue variance (price, volume, and mix)
Revenue variance is the difference between actual and budgeted revenue, calculated as:
Revenue variance = Actual revenue – Budgeted revenue
Price and volume work the same way as in the subscription example: Price isolates discounting, and volume isolates unit growth.
Mix matters when you sell more than one product at different margins. Say you budgeted 1,000 units split evenly between a Pro plan with a $60 unit margin and a Basic plan with a $20 unit margin. You sold 1,100 units, but 70% were Basic.
Measured at the $40 budgeted average margin, the extra 100 units create a $4,000 F volume variance. The mix variance is 1,100 * [(30% – 50%) * $60 + (70% – 50%) * $20], or $8,800 U.
The shift toward Basic erased the volume gain and left margin $4,800 below plan. Run a mix variance whenever your products carry different margins, because more units can still mean less profit.
Profit variance
Profit variance compares actual profit to budgeted profit at the gross profit, operating income, or net income level. The formula is:
Profit variance = Actual profit – Budgeted profit
Leadership reads this number first, and it equals the sum of the revenue and cost variances underneath it. In the subscription example, assuming hosting and support is the only cost line, the $2,400 F revenue variance and the $3,500 U hosting and support variance net to a $1,100 U gross profit variance.
Present profit variance alongside the revenue and cost variances that make it up, because the net figure alone can't tell anyone what to fix.
Cost and expense variance
Cost variance compares actual spending to budget by line, department, or vendor. The formula is:
Cost variance = Actual cost – Budgeted cost
Say your software line was budgeted at $40,000 and came in at $46,500. That's $6,500 U, or 16.3% over budget.
Before you report it, find out whether it's timing (an annual renewal billed a month early), price (a higher rate at renewal), or new usage (seats added mid-quarter). Timing reverses on its own, but price and usage changes carry into future months, so they belong in the reforecast.
Standard cost variances (materials, labor, and overhead)
Standard costing assigns a predetermined cost to each unit of material, labor hour, and overhead, then measures actual costs against it. Manufacturers and other inventory-heavy companies use these variances to separate what they paid from how much they used.
| Variance | Formula |
|---|---|
| Material price | (Actual price – Standard price) * Actual quantity |
| Material quantity (usage) | (Actual quantity – Standard quantity allowed) * Standard price |
| Labor rate | (Actual rate – Standard rate) * Actual hours |
| Labor efficiency | (Actual hours – Standard hours allowed) * Standard rate |
| Variable overhead spending | (Actual variable overhead rate – Standard variable overhead rate) * Actual hours |
| Variable overhead efficiency | (Actual hours – Standard hours allowed) * Standard variable overhead rate |
| Fixed overhead budget (spending) | Actual fixed overhead – Budgeted fixed overhead |
| Fixed overhead volume | Budgeted fixed overhead – (Standard hours allowed * Standard fixed overhead rate) |
Price and rate variances usually trace back to purchasing or payroll, while efficiency variances trace back to production, so route each one to the manager who controls it.
Variance analysis vs. flux analysis
Variance analysis compares actual results to an expectation such as a budget or standard. Flux analysis compares a balance or result to a prior period and explains the change.
| Dimension | Variance analysis | Flux analysis |
|---|---|---|
| Benchmark | Budget, forecast, or standard cost | Prior month, quarter, or year |
| Typical question | Why did we miss or beat the plan? | Why did this balance change since last period? |
| When it's run | After close, in the monthly or quarterly performance review | During close review, before the books are final |
| Typical owner | FP&A or the controller | Accounting team or the controller |
Both usually happen around close review and rely on the same materiality thresholds and commentary discipline. Once you've explained the drivers, a variance report packages those explanations for your CFO and department heads.
Use one threshold and one commentary format for both, so your team writes each explanation once and reuses it.
How to perform variance analysis
Budget variance analysis follows the same five steps each month, and each step narrows the work for the next one.
1. Pull actuals and the benchmark
Pull closed actuals and the budget, forecast, or prior period at the same level of detail, such as general ledger (GL) account by department. Mismatched detail creates false variances that eat up your review time.
2. Calculate variances in dollars and percent
A 40% overrun on a $1,000 postage line costs $400, while a 3% overrun on $500,000 of payroll costs $15,000. You need both measures to rank which variances deserve attention.
3. Apply a materiality threshold
Investigate only variances above a set threshold, such as anything over $5,000 and more than 10% of budget. Set the threshold before you start so the review stays consistent from month to month.
A net variance can look immaterial while its components are not, so apply the threshold to the price and volume pieces as well as the total. The $2,400 F revenue variance fails a $5,000 test on its own, but the $12,600 U and $15,000 F behind it clear it easily.
4. Break material variances into drivers
Split each material variance into price, volume, mix, or timing, the way $2,400 F of revenue split into $12,600 U price and $15,000 F volume. The driver tells you who needs to act.
5. Assign an owner and explain it
Name the owner, note whether they controlled it, and write commentary such as "Hosting ran $1,500 U because our provider raised rates in March, and it will recur." Commentary that names the driver, mechanism, and recurrence tells leadership whether to reforecast.
Common pitfalls in variance analysis
Most variance analysis mistakes come from reporting a number before you understand what's inside it.
- Reading only the net number: A $2,400 F revenue variance looks on plan until you split out the $12,600 U price variance behind it.
- Treating favorable as good: Under-spend from a delayed hire or deferred maintenance shows up as favorable but often means work isn't getting done.
- Comparing against a stale static budget: When volume moves 20% from plan, the static budget blends growth costs with overspending and makes most lines look wrong.
- Mistaking timing for real variance: An invoice booked a month early looks like overspend this month and under-spend next month, even though annual cost hasn't changed.
Split the variance, check for timing, and confirm the benchmark before you send commentary to leadership.
Investigate variances faster with Ramp Stack
Most of the time in variance analysis goes to investigation: pulling transaction detail, tracing each driver, and drafting commentary. The subtraction takes seconds, but finding why hosting ran $1,500 over plan can take an afternoon of exports and vendor invoices.
Ramp Stack is an AI platform built for accounting, where you deploy agents to run variance analysis and investigate variances. Agents work directly against QuickBooks, NetSuite, Sage Intacct, and spreadsheets. They produce native, formula-backed workbooks you can open, inspect, and edit.
With Stack, you spend your time explaining variances instead of assembling them:
- Trace variances to their drivers: Agents pull detail from your accounting system and spreadsheets, then analyze what moved each line.
- Check the math in native workbooks: Every formula stays visible and editable, so you can test any number before it reaches your CFO.
- Review the reasoning behind each output: Agents show their reasoning, and every session has a reviewable, exportable Session Audit Log.
- Approve before anything syncs: Nothing syncs to your accounting system without accountant approval.
- Start without a Ramp account: You can use Stack without a Ramp card or existing Ramp account.
Try Stack for free to see how agents investigate variances and prepare review-ready workbooks.

FAQs
The common grouping is revenue (sales) variance, cost variance, profit variance, and budget or flexible budget variance. Companies that use standard costing add material, labor, and overhead variances. Each type compares actual results to a different benchmark or component.
The core formula is Variance = Actual – Budget. The percentage form is Variance % = (Actual – Budget) / Budget * 100. Label each result favorable or unfavorable based on whether the line is revenue or expense.
A favorable variance improves profit against plan, and an unfavorable variance reduces it. Revenue and expense lines read in opposite directions, so revenue above budget is favorable while spending above budget is unfavorable.
A budget variance is the difference between a budgeted amount and the actual result for a line item or the whole business. You calculate it as Actual – Budget and label it F or U.
Most smaller companies run variance analysis monthly after close, plus a quarterly pass for reforecasting. Investigate only variances above your materiality threshold so the review fits inside your close calendar.
“Claude could help me prepare an entry, but switching clients meant resetting the QuickBooks connection and giving it context all over again. The skills I’d built didn’t carry over easily, and I still had to post the entry myself.”
— Jay Wilmouth
Senior Finance and Accounting Associate, Sandbox

“We want it to be simple for employees to use, but we also need the right people to review each purchase. Ramp gives us a way to do both. The request moves through the process, and nothing goes through without somebody looking at it and signing off on it.”
Gayle Seguin
Law Clerk & Legal Operations, Assent

“Our cupcakes are handmade. Our back office doesn’t need to be. Ramp gives us the automation to run a big business without losing the personal touch that made us who we are.”
Amanda Tedeschi
Controller, Baked by Melissa

“I want to trust the people at our sites to buy what they need, when they need it. With everything in Ramp, they have one place to go and one set of rules to follow. And I can see how all of their spending ties back to the contracts that fund their work.”
Marina Peterson
CFO, Wu Yee Children’s Services

“Finance isn’t just there to keep a record of the past. Are we negotiating with a retail partner? We have a seat at that table. Looking at a brand partnership? We have a seat at that table too. That’s really the big unlock: finance can be a strategic partner across the business, while Ramp keeps day-to-day work from pulling us away.”
Rachel Prescott
CFO, Caraway

“I assumed I would have to choose between speed and control. What I found is that you can have both. A well-designed system takes friction out, for the finance function and for everyone else.”
Justin Webster
CFO, Denver Broncos

“A well-run district should not have to choose between getting work done at the school site and keeping control of the dollars behind it. We're not hiring more people to do more jobs, so we have to be smarter about the process. With Ramp, the purchase, the receipt, and the record stay together from the start. ”
Nick Brizeno
Director of Purchasing, San Marcos Unified School District

“In senior living, scale only works if the communities still feel personal. We needed the back office to carry more of the complexity, not the people serving residents. Ramp helped us build that infrastructure, so the experience in the community could stay human.”
Ryan Cole
CFO, Agemark Senior Living



