Finance & business

Profit Margin Calculator

Price a product with confidence. Enter your cost and your revenue (selling price) to see the gross profit per sale, your profit margin as a percentage of revenue, and your markup as a percentage of cost. Margin and markup are the two numbers small-business owners, Etsy and Amazon sellers, restaurants, and freelancers in the U.S. mix up most often — and getting them backwards is the fastest way to underprice and lose money on every order. This calculator shows both side by side so you can set a price that actually hits the profit you want. It updates as you type, runs entirely in your browser, and shows both formulas below.

Pricing details

Margin worksheet RABIXAI
Profit margin
0%

profit as a share of revenue

Cost cost of goods $0.00
Revenue selling price $0.00
Gross profit revenue − cost $0.00
Markup profit ÷ cost 0%
Profit margin 0%

Margin and markup describe the same profit two ways — margin is a slice of the selling price, markup is added on top of cost.

How the profit margin calculator works

Your gross profit is simply revenue minus cost. From there, profit margin expresses that profit as a percentage of the selling price, while markup expresses it as a percentage of the cost. They answer different questions: margin tells you how much of each dollar of sales you keep; markup tells you how much you added to the cost to set the price.

Profit margin formula

margin = (revenue − cost) ÷ revenue × 100

where: revenue = the selling price cost = the cost of goods revenue − cost = gross profit

Markup formula

markup = (revenue − cost) ÷ cost × 100

where the same gross profit is measured against cost instead of revenue. A 50% margin equals a 100% markup; a 20% margin equals a 25% markup.

Notes & assumptions

Frequently asked questions

What's the difference between margin and markup?

They describe the same gross profit measured against two different bases. Margin is profit as a percentage of the selling price (revenue), while markup is profit as a percentage of your cost. Because revenue is always larger than cost when you're profitable, the margin percentage is always smaller than the markup percentage on the same item — a 50% margin is a 100% markup, and a 20% margin is a 25% markup. Mixing them up is the single most common pricing mistake U.S. retailers make.

What is a good profit margin for a small business?

It depends heavily on your industry. Grocery and restaurants often run on thin single-digit net margins, while software and consulting can clear 50% or more. As a rough benchmark, many U.S. small businesses target a gross margin of 50% or higher on products so there's enough left to cover rent, payroll, marketing and taxes. Remember this tool shows gross margin only — your net margin after all overhead will be lower.

How do I calculate the selling price from a desired margin?

Divide your cost by one minus the margin (as a decimal). If an item costs $40 and you want a 60% margin, the price is 40 ÷ (1 − 0.60) = 40 ÷ 0.40 = $100. Don't simply add 60% to the cost — that gives you a 60% markup, which is only a 37.5% margin. To check your math, type the cost and that price into the calculator above and confirm the margin reads back as 60%.

Is this gross margin or net margin?

This is gross margin: revenue minus the direct cost of the product, divided by revenue. It does not subtract operating expenses like rent, salaries, shipping, payment-processing fees, advertising or taxes. Net (or net profit) margin accounts for all of those and is always lower. Use gross margin to price individual items and net margin to judge the health of the whole business.

Why is my margin negative?

A negative margin means your selling price is below your cost, so you lose money on every sale. The calculator shows this as a negative gross profit and flags that you're selling at a loss. Businesses sometimes do this on purpose for loss-leader promotions, but if it's unintentional, raise the price or lower the cost until the margin turns positive.