FormulaCraft

How to calculate profit margin percentage in Excel and Google Sheets

Topic:Percentages

Heads up: Excel and Google Sheets do this differently.

Excel
=((B2-A2)/A2)*100
Google Sheets
=ARRAYFORMULA(((B2:B3-A2:A3)/A2:A3)*100)

Verified example

Computed by a real spreadsheet engine on the sample data below.

Cost PriceSelling PriceProfit Margin %
100150
200250

=((B2-A2)/A2)*10050

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Enter your cost price in column A and your selling price in column B.
  2. 2In cell C2, enter the formula to calculate the profit margin percentage.
  3. 3Copy the formula down to apply it to other rows.

Tips

Need the Google Sheets version instead? Open Sheets variant in workspace →

Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.

Frequently asked

What if my cost price is higher than my selling price?

The formula will return a negative value, indicating a loss.

Can I format the result as a percentage?

Yes, select the cell with the formula and change the number format to Percentage.

Do these formulas work with different currencies?

Yes, but ensure all values are in the same currency before calculation.

More on Percentages

See all →

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: