01What is Profit Margin Calculator?
Margin and markup get mixed up all the time, and the mix-up costs real money. Someone asks for a 40% markup, someone else hears 40% margin, and the price comes out wrong. This calculator puts both numbers side by side so the difference is obvious. You fill in two fields, Cost Price and Revenue / Selling Price. The tool returns three results: Profit, Profit Margin and Markup. The formulas are printed on the page, and they are the standard textbook ones. Profit is Revenue minus Cost. Margin is Profit divided by Revenue, times 100. It's the share of each sale you keep. Markup is Profit divided by Cost, times 100. It's how much you added on top of what you paid. A quick example. Buy something for $60 and sell it for $100. Profit is $40. Margin is 40.00%, because 40 is 40% of 100. Markup is 66.67%, because 40 is two thirds of 60. Same deal, two very different percentages. Below the results there's a small reference table pairing common margins with their markups, from 20% margin with 25% markup up to 75% margin with 300% markup. Losses work too. Sell at $60 something that cost $80 and Profit shows as $-20.00 in red. Margin reads -33.33% and markup -25.00%. Division by zero is handled honestly. With zero revenue the margin is undefined, and with zero cost the markup is undefined. Either case shows N/A instead of a fake 0%. A negative cost gives no result. Results are shown to two decimal places with thousands separators, like $6,000.00. Each has its own copy button, which copies the plain number without the $ or % sign. That makes it easy to paste into a spreadsheet cell. The calculator only knows the two numbers you give it, so what you count as cost decides which margin you get. Use cost of goods alone and you are looking at gross margin. Fold in shipping, fees and a share of overhead and you get closer to net margin. There's no tax, discount, break-even or target-price mode, and no currency choice. The $ sign is just a label. Nothing you type is stored or sent anywhere. The arithmetic runs in the page, so your pricing stays on your screen.
Small shop owners and freelancers setting prices, founders checking unit economics, and developers verifying the maths in a pricing feature. The tool runs entirely in your browser, so your data never leaves your device.
02How to use Profit Margin Calculator
- Enter the Cost Price.
- Enter the Revenue / Selling Price.
- Read Profit, Profit Margin and Markup in the results.
- Click the copy button next to any result to copy the plain number.
- Click Reset to clear both fields.
03Worked examples
- Input:
Cost 60, Revenue 100 - Result:
Profit $40.00, Margin 40.00%, Markup 66.67% - Margin divides by revenue, markup by cost, so markup is higher whenever there is a profit.
- Input:
Cost 30, Revenue 50 - Result:
Profit $20.00, Margin 40.00%, Markup 66.67% - Same percentages as 60/100 because the ratio of cost to revenue is the same.
- Input:
Cost 4000, Revenue 10000 - Result:
Profit $6,000.00, Margin 60.00%, Markup 150.00% - Large values get thousands separators.
- Input:
Cost 80, Revenue 60 - Result:
Profit $-20.00, Margin -33.33%, Markup -25.00% - A loss, shown in red.
- Input:
Cost 0, Revenue 25 - Result:
Profit $25.00, Margin 100.00%, Markup N/A - Markup is undefined at zero cost.
- Input:
Cost 10, Revenue 0 - Result:
Profit $-10.00, Margin N/A, Markup -100.00% - Margin is undefined at zero revenue.
04Common use cases
- Checking the margin on a product before listing it, given what you paid and the shelf price
- Translating a supplier's "keystone" 100% markup into the 50% margin it actually gives you
- Comparing two price points for the same item to see how much margin each leaves
- Pricing freelance work where you resell a subcontractor's hours at a higher rate
- Cross-checking the margin and markup columns in a pricing spreadsheet or invoicing app
- Seeing how deep a clearance sale cuts when the price drops below cost
05Tips
- Margin can't reach 100% unless cost is zero, but markup has no ceiling. A 300% markup is only a 75% margin.
- For a price that hits a target margin, divide cost by (1 − margin). A $60 cost at 40% margin needs $100.
- Keep cost and revenue on the same basis, both per unit or both per month, or the percentages mean nothing.
- Copied values have no $ or % symbol, so they paste cleanly into spreadsheet formulas.
- Zero revenue or zero cost shows N/A on purpose. Treat it as a sign the inputs need a second look.
06Related concepts
Gross margin, Markup, COGS, Unit economics.
Frequently Asked Questions
What is Profit Margin Calculator?
Profit Margin Calculator is a free, browser-based developer tool on AIDToolStack. Calculate profit, profit margin and markup from cost and revenue. It requires no installation or sign-up and works entirely in your browser.
Is Profit Margin Calculator free to use?
Yes. No sign-up, no fees and no usage cap.
Does Profit Margin Calculator store my data?
No. It runs in your browser; nothing is uploaded.
Related calculators on PrimeCalcPro
More calculators from our sister site, each with the formula and a worked example.