Quick, clean, and to the point

Get profit margin percentage

Excel formula: Get profit margin percentage
Generic formula 

To calculate profit margin as a percentage with a formula, subtract the cost from the price and divide the result by the price. In the example shown, the formula in cell D5 is:


Profit margin is a ratio of profit divided by price, or revenue. In the example shown, we are calculating the profit margin for a variety of products or services. For each item, we have price and cost, but profit is not broken out separately in another column.

To calculate profit margin, we must first subtract the cost from the price to get profit. Then we divide the result by the price. In the example shown, the first formula in D5 is:


Make sure you use parentheses to control the order of operations.

Note that the result will be a decimal number like .10, .25, .30, etc. To display the result as a percentage, apply Percentage number format. You can use the shortcut Control + Shift + %.

Dave Bruns

Excel Formula Training

Formulas are the key to getting things done in Excel. In this accelerated training, you'll learn how to use formulas to manipulate text, work with dates and times, lookup values with VLOOKUP and INDEX & MATCH, count and sum with criteria, dynamically rank values, and create dynamic ranges. You'll also learn how to troubleshoot, trace errors, and fix problems. Instant access. See details here.

Download 100+ Important Excel Functions

Get over 100 Excel Functions you should know in one handy PDF.