Skip to main content
v2026.11,986 entries · CC-BY 4.0

How to Calculate Percent Variance in Excel

Percent variance in Excel is (new – original) / original. Worked examples, Percent Style formatting, #DIV/0! fixes and when to use ABS.

Written and maintained by CASRAI Editorial Board

Published

On this page

To calculate percent variance in Excel, subtract the original (baseline) value from the new value, divide the result by the original value, and format the cell as a percentage. With the baseline in B2 and the new value in C2, the formula is =(C2-B2)/B2, followed by Home tab, Percent Style. A positive result is an increase from the baseline and a negative result is a decrease. Microsoft’s own support article describes the same method: subtract the original from the new figure, then divide by the original.

This guide walks through that calculation with the worked numbers Microsoft uses in its documentation, then covers the two things that go wrong most often in research and budget spreadsheets: a baseline of zero or blank (the #DIV/0! error) and results that display as decimals instead of percentages. It also explains how this “percent variance” differs from statistical variance, so you do not reach for the wrong tool.

What percent variance is used for in research

In spreadsheets, “percent variance” usually means the difference between two values expressed as a share of a reference value. Research offices and lab managers use it to compare actual spending with a budgeted amount, one reporting period with the previous period, a repeat measurement with a baseline measurement, or a post-treatment reading with a pre-treatment reading. The arithmetic is identical in each case; only the choice of which value is the baseline changes.

Naming note (editorial interpretation). Search results and spreadsheet templates also call this calculation percent change, percentage difference, or budget variance. None of these names refers to statistical variance, which measures the spread of a set of observations around their mean. If you need spread rather than a before-and-after comparison, see the guides on descriptive statistics in Excel, the coefficient of variation in Excel and the list of Excel statistics functions. If you are unsure whether you need a proportion or a percentage, proportion vs percentage explains the distinction.

Install or access

The calculation uses only cell arithmetic, so it needs no add-in and no Analysis ToolPak. (The ToolPak is covered in the Excel Analysis ToolPak guide and is not required here.) Use Excel as provided by Microsoft, and consult Microsoft Support for its current availability and system requirements. The same subtraction-and-division formula can be entered in Google Sheets, which is covered in the alternatives table below.

Step by step: calculating percent variance

The steps below use the two examples published in Microsoft Support’s “Calculate percentages” article. The first is an increase and the second a decrease, so together they show how the sign of the result behaves.

Worked example 1: an increase

Microsoft’s example compares an original figure of 2342 with a new figure of 2500. Lay the data out like this:

  1. In A2 type a label (for example Period 1 to Period 2), in B2 type the baseline value 2342, and in C2 type the new value 2500.
  2. Click D2 and enter =(C2-B2)/B2. Excel stores the difference over the original: (2500 − 2342) / 2342 = 158 / 2342 = 0.06746, which Microsoft’s article shows as 6.75%.
  3. With D2 selected, go to the Home tab and click Percent Style. The cell now shows 6.75% rather than 0.06746.
  4. Use Increase Decimal or Decrease Decimal on the same tab to show more or fewer decimal places.

Microsoft’s article writes the formula with literal numbers, =(2500-2342)/2342. Referring to cells instead of typing the numbers means the percentage updates when you correct an input, and the same formula can be filled down a column.

Worked example 2: a decrease

For a decline, Microsoft’s article compares 2500 with 2425. Put 2500 in B3 and 2425 in C3, then enter =(C3-B3)/B3 in D3. The arithmetic is (2425 − 2500) / 2500 = −75 / 2500 = −0.03, displayed as −3.00% after applying Percent Style. The minus sign is the information: the new value is 3.00% below the baseline.

Applying the formula to a whole column

When your data are in rows, enter the formula once in the first result row and copy it down; because the references are relative, row 3 becomes =(C3-B3)/B3 automatically. Keep the baseline in one column and the comparison value in another for every row, so that the formula never changes direction mid-column.

Output and how to read it

The result is a signed ratio. After Percent Style is applied, 6.75% means the new value is 6.75% larger than the baseline, and −3.00% means it is 3.00% smaller. The percentage is always relative to the baseline you chose, so swapping the baseline and the new value gives a different percentage, not the same number with the sign flipped. Check, for each result, that you can say aloud which value is the baseline.

The table below summarises the two sourced examples and how to read each.

Example Baseline New value Formula Result Reading
Increase 2342 2500 =(C2-B2)/B2 6.75% New value is 6.75% above baseline
Decrease 2500 2425 =(C3-B3)/B3 −3.00% New value is 3.00% below baseline

When you want the size of the gap, not its direction

If a report only needs the magnitude of the variance, wrap the formula in the ABS function. Microsoft Support defines ABS(number) as returning the absolute value of a number; for example =ABS(-2) returns 2. Applied here, =ABS((C3-B3)/B3) returns 0.03 (3.00%) for the decrease example. Use ABS only when direction is irrelevant, because it discards the information about whether the value went up or down. Many budget reviews need the sign, so keep the signed formula in your working column and add an absolute column only if a reviewer asks for it.

Troubleshooting

#DIV/0! when the baseline is zero or blank

The formula divides by the baseline, so a baseline of zero, or an empty baseline cell, produces #DIV/0!. Microsoft Support explains that this error appears when a number is divided by zero and when a formula refers to a cell that contains 0 or is blank. A percentage change from zero is undefined, so the error is accurate rather than a bug in the sheet. Microsoft documents three responses, and the first is to make sure the divisor is neither zero nor empty.

If some rows legitimately have no baseline, use a guarded formula. Microsoft’s pattern for avoiding the error is an IF test on the divisor, for example =IF(B2,(C2-B2)/B2,""), which returns a blank (or any text or value you substitute) when B2 is zero or empty instead of an error. The equivalent explicit form is =IF(B2=0,"",(C2-B2)/B2).

Microsoft also documents IFERROR(value, value_if_error), which returns your fallback when the formula produces an error. Its warning matters for research data: IFERROR suppresses all errors, not just #DIV/0!. A mistyped reference or a text value in a numeric column would be hidden along with the zero baseline. Prefer the narrower IF test on the baseline when you want other mistakes to remain visible.

The data table below the guide compares the plain formula, the IF test and IFERROR side by side.

The result shows 0.0675 instead of 6.75%

The formula returns a decimal ratio. It displays as a percentage only when the cell is formatted that way: select the result cell, then on the Home tab choose Percent Style, as Microsoft’s article instructs. Formatting changes only how the value is displayed; the cell still holds 0.0675. This matters if you reference the cell elsewhere, since another formula receives the decimal, not the rounded display.

Wrong sign or surprising size

Check the order of subtraction first: the formula must be (new − original) / original. Reversing the subtraction flips the sign, and dividing by the new value instead of the original changes the size. The negative-baseline case, where the original value is itself below zero, is where percent variance needs a documented convention in your project; spreadsheets will compute a number, but whether it is meaningful for your measure is a methodological decision, not something Excel resolves (editorial interpretation).

Free alternatives

The arithmetic is the same in any spreadsheet. The table below lists the one alternative whose formatting instructions were read from the vendor’s own documentation.

Tool How to enter the formula How to show the result as a percentage
Google Sheets Enter the same formula, for example =(C2-B2)/B2 (the formula is ordinary spreadsheet arithmetic; editorial interpretation) Select the cells, then use Format > Number and choose the number format to apply (Google Docs Editors Help, “Format numbers in a spreadsheet”)

Reporting variance in research and budget documents

When a percent variance appears in a report, state the baseline and the comparison value alongside the percentage, and say what the baseline is (budgeted amount, prior period, pre-treatment reading). A bare “−3.00%” cannot be checked by a reader, whereas “−3.00% against a baseline of 2500” can be recomputed. Round for display with the decimal buttons rather than by editing the underlying values, and keep the unrounded values in the sheet so later calculations are not built on rounded figures.

Frequently asked questions

What is the formula for percent variance in Excel?

=(new − original)/original, entered with cell references such as =(C2-B2)/B2, then formatted with Percent Style on the Home tab.

How do I show the result as a percentage?

Select the result cell and click Percent Style on the Home tab; use Increase Decimal or Decrease Decimal to change the number of places shown.

Why do I get #DIV/0!?

The baseline cell is zero or blank. Microsoft Support documents that dividing by zero, or by a cell that is 0 or empty, produces this error. Guard the formula with an IF test on the baseline.

How do I get a positive percentage regardless of direction?

Wrap the formula in ABS, for example =ABS((C2-B2)/B2). ABS returns the absolute value of a number, so the direction of the change is lost.

Is percent variance the same as statistical variance?

No. Percent variance here is a difference expressed relative to a baseline; statistical variance measures spread around a mean. See the descriptive statistics guide linked above for spread measures.

Sources

Data: Handling a zero or blank baseline in a percent variance formula in Excel

Compares three ways of writing the (new - original) / original formula and what each returns when the baseline is zero or blank, compiled from Microsoft Support documentation on the #DIV/0! error and the IFERROR function.

Period covered: 2026.

Handling a zero or blank baseline in a percent variance formula in Excel
ApproachExample formulaResult when baseline is zero or blankDocumented caveat
Plain formula=(C2-B2)/B2#DIV/0! errorError appears when a formula divides by zero or by a cell that is 0 or blank
IF test on the divisor=IF(B2,(C2-B2)/B2,"")Returns the substitute value (blank in this example)Microsoft's pattern is IF(A3,A2/A3,0); the substitute can be 0, an empty string or a message
IFERROR=IFERROR((C2-B2)/B2,"")Returns the value_if_error argumentSuppresses all errors, not just #DIV/0!

Sources

Compiled by CASRAI from the sources above. Free to reuse under CC BY 4.0 with attribution.

Follow CASRAI

Research-administration guidance, standards updates and independent tool reviews.

Ask CASRAI · full access

Ask about How to Calculate Percent Variance in Excel

Full access: large monthly usage, up to 10 source passages behind each answer, and MCP and API access for Claude Code, Codex and other CLIs. Cancel any time.

An AI assistant for research: funder rules, compliance, methods and publishing. It links the sources behind its answers and labels answers that come from a web search.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays open to read, with no account and no card.

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →