# Get profit margin percentage

=(price-cost)/price

If you need to calculate a profit margin, you can easily do so with a simple formula that uses the sale price and the cost.

In the example shown, the first formula looks like this:

=(B4-C4)/B4

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

Note that the result will be a decimal like 0.40, so you need to format the cell with the Percentage number format (use the ribbon or Ctrl + 1 to access all number formats).

## 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.