How to calculate percentages in Excel and Google Sheets

Formulas for percent of a number, percent of total, percentage change, adding a percentage and removing tax — and the formatting traps.

Percentage format

Spreadsheets store 25% as 0.25. If you type 25 into a cell and then apply the % format, it shows 2500%. Type 25% (with the sign) or 0.25, then format as a percentage. This one setting causes most spreadsheet percentage errors.

Percent of a number

With the percent in A2 and the number in B2: =A2*B2. If A2 holds 15% and B2 holds 80, the result is 12.

What percent one number is of another

=A2/B2, then format the cell as a percentage. For percent of a column total, lock the total with $: =B2/$B$10 and fill down.

Percentage change

Old value in A2, new in B2: =(B2-A2)/A2, formatted as a percentage. To handle negative starting values, use =(B2-A2)/ABS(A2). Wrap it in IFERROR to avoid #DIV/0! when the old value is zero.

Add or subtract a percentage

Increase B2 by the percent in C2: =B2*(1+C2). Decrease: =B2*(1-C2).

Remove tax or reverse a discount

Price before tax from a total in B2 with the rate in C2: =B2/(1+C2). Original price before a discount: =B2/(1-C2).

Rounding money

Use =ROUND(B2*C2,2) so totals match receipts to the cent; formatting alone only hides the extra decimals.

For a one-off answer without opening a spreadsheet, the percentage calculator is quicker.

Missing a calculator, or spotted a mistake? Tell us: contact (at) minusplus.com — we read every message.