Field Guide

Excel percentage formula: percent of a total, percent change, and formatting as a percent

Updated

To find a percentage in Excel, divide the part by the total and format the result as a percent: =B2/B6 returns a decimal like 0.25, and on the Home tab the Number group’s Percent Style button turns that into 25%. Percentage change between two numbers is the same idea with a different formula, =(C2-B2)/B2, the new value minus the old over the old. Microsoft puts the arithmetic simply: “Percentages are calculated by using the equation amount / total = percentage.”

This page covers the everyday cases on one screen: a percentage of a total, percentage change, the percentage difference between two numbers, how the percent format actually works, and the trap where a cell shows 2500% instead of 25%.

How do I calculate a percentage of a total?

A percentage of a total is one number divided by the whole: part / total. Say four spending lines add up to a 1000 budget and you want each line as a share of it. Put the line amount over the total, =B2/B6, and Excel returns the fraction 0.25; format it as a percent and it reads 25%.

C2
fx
=B2/B6
A B C
1 Category Amount % of total
2 Marketing 250 25%
3 Salaries 500 50%
4 Rent 150 15%
5 Software 100 10%
6 Total 1000 100%
C2 holds =B2/B6. The 250 in B2 over the 1000 total in B6 is 0.25, which Percent Style shows as 25%. Each amount divided by the total in B6 gives its share, and 25 + 50 + 15 + 10 add up to 100%.

Notice Excel returns a decimal, not a percent, until you format it. That is deliberate: the value underneath is the fraction, and the percent format is a display layer on top, covered further down.

One thing to watch when you fill the formula down the column: the total has to stay put. Written as =B2/B6, the reference to B6 shifts as you copy, so lock it with a dollar-sign absolute reference, =B2/$B$6. The dollar sign and the F4 key that sets it are covered in cell references.

How do I calculate percentage change between two numbers?

Percentage change is how far a number moved from an old value to a new one: subtract the old from the new, then divide by the old. That is =(C2-B2)/B2, where B2 is the starting value and C2 the new one.

D2
fx
=(C2-B2)/B2
A B C D
1 Product Jan Feb Change
2 Widget 200 250 25%
3 Gadget 400 300 -25%
4 Gizmo 150 180 20%
D2 holds =(C2-B2)/B2. February 250 minus January 200 is 50, over the old value 200, so 0.25, shown as 25%. Gadget falls from 400 to 300, a change of -25%.

A rise is a positive percent and a fall is a negative one, so the drop from 400 to 300 in the second row reads as -25%. Microsoft’s own example works the same way, =(2500-2342)/2342, which comes out to about 6.75%.

The percentage difference between two numbers is that formula seen from another angle: how far one number sits from another, as a percent of the one you compare against. =(A-B)/B measures how much bigger or smaller A is than B. Whichever number you divide by is the baseline, and choosing it decides the answer.

=(C2-B2)/B2
The value you divide by is the baseline. For percentage change it is the old value; for a percentage difference it is whichever number you are comparing against.

How do I format a number as a percentage?

There are two ways, one quick and one with more control.

Quick: select the cells and, on the Home tab in the Number group, choose Percent Style, or press Ctrl+Shift+% on Windows. A value like 0.25 then shows as 25%.

For more control, open the Format Cells window (on the Home tab, the Number group’s dialog launcher, the small arrow next to Number; on a Mac, the Number Format arrow, then More Number Formats), select Percentage in the Category list, and set the Decimal places box. Two decimals show 0.2537 as 25.37%; zero decimals show it as 25%.

How many decimals you see is just formatting. The stored value never changes, only its display:

Cell stores Percent format Displays
0.25 0% 25%
0.25 0.00% 25.00%
0.2537 0.00% 25.37%
25 0.00% 2500.00%

Changing the decimals changes only what you see. 0.2537 still calculates as 0.2537 while it shows 25%, so a rounded-looking figure keeps its full precision underneath. To round the stored number itself, use the ROUND function. The last row of the table is a different problem, and the next section is about it.

Why does my percentage show 2500%?

The percent format is a display layer: it shows the stored value multiplied by 100, followed by a percent sign. A cell holding 0.25 therefore shows 25%. The catch is applying it to a number that is already a whole percentage. As Microsoft’s documentation puts it: “If you apply the Percentage format to existing numbers in a workbook, Excel multiplies those numbers by 100 to convert them to percentages.” So a cell that already holds 25 displays 2500.00% the moment you format it.

The fix is to decide up front whether the cell stores a fraction or gets the format. Two clean ways:

A percentage can also read wrong for a reason that has nothing to do with the format: one of the numbers behind it is stored as text. A total built with SUM skips that value, so the shares stop adding up to 100, and a non-numeric text cell pulled into a formula can surface as a #VALUE! error instead. Converting those is its own task, covered in numbers stored as text.

The short version

Frequently asked questions

What is the formula for a percentage in Excel?
For a percentage of a total, divide the part by the total, such as =B2/B6. Excel returns a decimal like 0.25, and applying Percent Style shows it as 25%. For percentage change between two numbers, use =(new-old)/old, for example =(C2-B2)/B2, then format the result as a percent.
How do I calculate the percentage of a total in Excel?
Put the part over the total in a formula, for example =B2/B6 where B6 holds the total. Press Enter and you get a decimal such as 0.25. Select the cell and, on the Home tab in the Number group, choose Percent Style so 0.25 shows as 25%. To copy the formula down a column, lock the total with a dollar-sign absolute reference, =B2/$B$6.
How do I calculate percentage change in Excel?
Subtract the old value from the new one and divide by the old value: =(new-old)/old, for example =(C2-B2)/B2. Format the result as a percent. A rise shows as a positive percent and a fall shows as a negative percent, so a drop from 400 to 300 reads as -25%.
How do I format a number as a percentage in Excel?
Select the cells and, on the Home tab in the Number group, choose Percent Style, or press Ctrl+Shift+% on Windows. For decimal places, open the Format Cells window, select Percentage in the Category list, and set the Decimal places box: 2 shows 25.37% and 0 shows 25%.
Why does my percentage show 2500% instead of 25%?
Because the percent format shows the stored value multiplied by 100. If a cell already holds the whole number 25 and you apply Percent Style, it displays 2500.00%. Store the fraction 0.25 instead, or format the empty cells as percent first and then type, so Excel reads 25 as 25%.
Does formatting a cell as a percentage change its value?
No. The percent format only changes how the number is displayed, not what is stored. A cell showing 25% still holds 0.25, and any formula that reads the cell uses 0.25. Increase Decimal and Decrease Decimal change the display too, not the stored value.

Catch the errors before they ship

Reviewing a change to a model? Compare the two versions in your browser and see every changed cell, formula, and value. It's free, and nothing leaves your computer.