Price · cost · margin

Profit margin calculator

Profit margin is profit divided by the selling price. An item that costs $30 and sells for $50 earns $20 of gross profit: a 40% margin, or a 66.7% markup on cost.

Profit Margin Calc editorial teamUpdated 4 sources

Calculator 01

Profit margin

From one selling price and its costs

Try:

Sale

$
$

Optional

$
units
Profit margin40.0%profit ÷ selling price
Profit per item$20.00price − cost
Markup66.7%profit ÷ cost

At $30.00 cost and $50.00 price, your profit margin is 40.0% and your markup is 66.7%.

Selling price$50.00
− Cost of the item$30.00
Gross profit$20.00
Where the selling price goes
  • Cost 60.0%
  • Profit 40.0%

Formula. Gross profit = price − cost. Profit margin = gross profit ÷ price. Markup = gross profit ÷ cost. Net margin = (price − cost − other costs) ÷ price.

Profit margin formula

Profit margin is the share of the selling price you keep as profit: subtract the cost from the price, then divide by the price.[1]

Profit margin=Price − CostPriceExample: ($50 − $30) ÷ $50 = 40%

Multiply by 100 to show it as a percentage. Margin is always measured against revenue, so it can never reach 100% while the item costs anything. Markup uses the same profit but divides by the cost instead, which is why a 40% margin and a 66.7% markup describe the same sale. The margin vs markup guide explains when each one is used, and the margin calculator solves for a price, a cost or a margin when you know any two of them.

Gross, operating and net profit margin

A single sale has a gross margin; a business has three margins, one for each level of its income statement.

MarginProfit usedWhat it tells you
Gross marginRevenue − cost of goods soldHow much each sale leaves after the product itself
Operating marginGross profit − operating expensesWhether the core business covers rent, wages and marketing
Net profit marginProfit after interest and income taxWhat the owners keep from each dollar of revenue

Cost of goods sold covers what you paid for the products you sold, plus freight-in and the direct costs of making them; it does not include general overhead.[2] Fill in the optional other costs field above to see a per-sale net margin after marketplace fees and shipping, or open the step-by-step guide to calculating profit margin for a full worked income statement.

Margin to markup conversion table

To reach a target margin, multiply your cost by the price multiplier in the table: a 40% margin needs a 66.7% markup, so an item that costs $10 must sell for $16.67.

Margin, the markup that produces it, and the price for a $10 cost
MarginMarkupPrice multiplierPrice for $10 cost
10%11.1%1.111×$11.11
15%17.6%1.176×$11.76
20%25.0%1.250×$12.50
25%33.3%1.333×$13.33
30%42.9%1.429×$14.29
33.3%50.0%1.500×$15.00
40%66.7%1.667×$16.67
50%100.0%2.000×$20.00
60%150.0%2.500×$25.00
75%300.0%4.000×$40.00

The conversion formulas are markup = margin ÷ (1 − margin) and margin = markup ÷ (1 + markup). The markup calculator does the conversion for any cost, and the selling price calculator also adds marketplace and card fees, which come out of the price before you see any profit.

What is a good profit margin?

A good profit margin depends on the industry: in U.S. Census Bureau data for 2022, gross margin ranged from 24.3% to 53.6% of sales across these kinds of retail business.[3]

Gross margin as a % of sales, U.S. retail, 2022 (Annual Retail Trade Survey)
Kind of businessGross margin
Total retail31.1%
Furniture and home furnishings stores51.0%
Electronics and appliance stores29.4%
Grocery stores28.0%
Clothing stores50.6%
Shoe stores50.9%
Sporting goods, hobby and musical instrument stores44.6%
Warehouse clubs and supercenters24.3%
Miscellaneous store retailers53.6%
Electronic shopping and mail-order houses39.6%

Net margins are much thinner than gross margins because rent, wages, marketing and taxes come out of gross profit. In Aswath Damodaran's January 2026 dataset of U.S. public companies, the net margin for the whole market was 9.7%.[4] Compare your margin with businesses like yours, not with a single rule of thumb; the profit margin guide has the full benchmark table by industry.

Calculators on this site

Margin and markup

Pricing, break-even and profit

Marketplace seller fees

Payment and card processing fees

Frequently asked questions

How do you calculate profit margin?

Subtract the cost from the selling price to get profit, divide the profit by the selling price, and multiply by 100. For a $50 item that costs $30: (50 − 30) ÷ 50 = 0.40, a 40% margin.

What is the difference between margin and markup?

Both start from the same profit. Margin divides it by the selling price; markup divides it by the cost. A $10 item sold for $15 has a 33.3% margin and a 50% markup.

Can profit margin be more than 100%?

No. Profit can never exceed the selling price unless the cost is negative, so margin tops out just below 100%. Markup has no ceiling: selling a $10 item for $40 is a 300% markup.

Is profit margin the same as gross margin?

On a single product, "profit margin" usually means gross margin: price minus the cost of the item. For a whole business, people also use it for net profit margin, which subtracts every expense, interest and tax.

Should fees and shipping go into the cost?

Put them in the other costs field. The result then shows both the gross margin on the item and the net margin after the costs of selling it, which is the number that matters to a marketplace seller.

Sources

  1. Principles of Marketing, 18.3 Retailing Strategy Decisions (markup and gross margin) · OpenStax, Rice University, 2023
  2. Publication 334, Tax Guide for Small Business (chapters 6 and 7: cost of goods sold and gross profit) · Internal Revenue Service, reviewed April 30, 2026
  3. Annual Retail Trade Survey: 2022 (benchmarked), gross margin as a percentage of sales by kind of business · U.S. Census Bureau, August 31, 2026
  4. Operating and Net Margins by Industry (US), data as of January 2026 · Aswath Damodaran, NYU Stern School of Business, January 2026