Guide

How to Calculate Profit Margin

Learn how to calculate profit margin and markup from cost and revenue, or determine target selling prices with step-by-step formulas and examples.

Tool Profit Margin Calculator

To calculate profit margin, subtract your product cost from your selling price to find gross profit, then divide that profit by the selling price and multiply by 100. If you are setting prices from a target margin instead, divide your cost by one minus your desired margin percentage. You can complete both tasks quickly using the Profit Margin Calculator.

Choose Between Revenue Mode and Target Margin Mode

Before running your calculation, identify what data you already have and what figure you need to find:

  1. From Revenue mode: Use this option when you know both the unit cost and the final selling price. The tool computes gross profit, profit margin percentage, and markup percentage.
  2. From Margin mode: Use this option when you know your unit cost and want to hit a specific profit margin percentage. The tool calculates the required selling price and total dollar profit.

While evaluating pricing strategies and profitability per unit, you might also want to compare broader campaign efficiency or capital allocation with the ROI Calculator.

Step-by-Step Instructions to Calculate Margin

Follow these steps to calculate your financial metrics accurately:

  1. Select your calculation mode (From Revenue or From Margin).
  2. Enter your cost as a non-negative number in the Cost field.
  3. If you selected From Revenue, enter the selling price in the Revenue field.
  4. If you selected From Margin, enter your desired percentage strictly below 100 in the Target margin field.
  5. Click Calculate to see the resulting revenue, gross profit, margin percentage, and markup percentage rounded to two decimal places.

Profit Margin vs Markup

Profit margin and markup are often confused, but they use different bases:

  • Profit Margin expresses gross profit as a percentage of total selling price (revenue). The formula is ((Revenue - Cost) / Revenue) * 100.
  • Markup expresses gross profit as a percentage of the original wholesale or production cost. The formula is ((Revenue - Cost) / Cost) * 100.

Because revenue is larger than cost for profitable goods, markup percentage is always higher than the corresponding profit margin percentage.

Worked Example

Suppose an online retailer purchases a handcrafted ceramic mug for $40 and sells it for $100.

  1. Cost = $40.00
  2. Revenue = $100.00
  3. Gross Profit = $100.00 - $40.00 = $60.00
  4. Profit Margin = ($60.00 / $100.00) * 100 = 60.00%
  5. Markup = ($60.00 / $40.00) * 100 = 150.00%

If the seller instead had a $40 cost and wanted a 25.00% target margin, the required selling price would be $40 / (1 - 0.25) = $53.33, producing $13.33 in gross profit.

Limitations of the Calculation

  • Target margin values must remain strictly below 100 percent. A target margin of 100 percent or more is mathematically impossible for any positive cost because it would require infinite revenue.
  • Negative numbers are not accepted for cost, revenue, or target margin.
  • When revenue is zero in revenue mode, margin percentage is unavailable and profit equals negative cost.
  • When cost is zero, markup percentage is unavailable.

Common Mistakes to Avoid

  • Confusing margin with markup: Setting a 25 percent markup on a $100 item gives a $125 selling price, which yields a 20 percent profit margin, not 25 percent.
  • Entering percentages as decimals in whole-number fields: When using target margin mode, enter 25 for a twenty-five percent target rather than 0.25.
  • Leaving fields blank unintentionally: Empty inputs default to zero, which changes the calculation output.

Frequently Asked Questions

Why is markup percentage higher than profit margin?

Markup divides profit by cost, while margin divides profit by the higher selling price. Since the denominator for markup is smaller, the resulting percentage is always higher on profitable items.

What happens if I set revenue to zero?

In revenue mode, setting revenue to zero results in a profit equal to negative cost, while the margin percentage is marked as unavailable because division by zero cannot occur.

How are decimals rounded in the results?

All monetary values, profit margins, and markup rates round to two decimal places using standard half-up rounding.

Tool

Profit Margin Calculator