Skip to main content

Markup & Margin Calculator — Cost, Price, Markup % and Margin %

Cost ⇄ price ⇄ markup % ⇄ margin % — solve any two, see both rates side by side — 100% in your browser

  • Runs locally
  • Category Calculator
  • Best for Getting a realistic range before a purchase, plan, workout, or schedule decision.
Selling price
$15.00
Cost
$10.00
Profit / unit
$5.00
Markup %
50%
Margin %
33.33%

Same $ profit, two denominators: markup divides by cost, margin divides by price. They only match at 0.

What this tool does

A markup and margin calculator that solves all four numbers, not just one. Type any two of cost, selling price, markup % and margin %, and it fills in the rest instantly. The point of the tool is the side-by-side readout, because markup and margin are the single most confused pair in pricing: they share the exact same dollar profit but use a different denominator. Markup divides profit by cost — (price − cost) ÷ cost — so a $10 item sold for $15 carries a 50% markup. Margin divides the same profit by the selling price — (price − cost) ÷ price — so that same item runs a 33.3% margin, not 50%. Shops that "add a 50% margin" by tacking 50% onto cost are quietly under-pricing every order, and this calculator shows both figures together so that mistake is impossible to make. Work it either direction: enter cost and the markup your supplier quotes to get the shelf price, or enter the price the market allows and a target margin to back-solve the most you can pay for stock. An optional sales tax field layers the tax-inclusive price on top while keeping the profit math on the pre-tax numbers, because tax is never your profit. Per-unit profit is shown in your chosen currency. Every input is encoded in the URL, so a shared link reopens the exact pricing scenario, and your currency and tax preference are remembered locally. No sign-up, no upload, no server round-trip.

Tool details

Input
Numbers
The page exposes text boxes, numeric controls, file pickers, or structured inputs depending on the tool.
Output
Live result + Copy
The result area focuses on usable output, with copy, download, or preview actions when supported.
Privacy
Browser-side processing
The main tool logic does not call an external API, so inputs normally stay in the current tab.
Save / share
Shareable URL state
Key settings are encoded in the URL so another person can reopen the same setup.
Performance budget
Initial JS <= 16 KB
No WASM budget is declared, keeping the tool quick to open on mobile.
Best fit
Calculator · Marketer
Category and role tags drive related tools, internal links, and quick fit checks.

How to use

  1. 1. Input

    Paste or drop your content into the tool panel.

  2. 2. Process

    Click the button. All processing is local in your browser.

  3. 3. Copy / Download

    Copy the result or download to disk in one click.

How Markup & Margin Calculator fits into your work

Use it for fast estimates, comparisons, and planning numbers before you make the final call.

Calculation jobs

  • Getting a realistic range before a purchase, plan, workout, or schedule decision.
  • Comparing scenarios by changing one input at a time.
  • Turning rough assumptions into a number you can discuss.

Calculation checks

  • Double-check units, dates, rates, and rounding assumptions.
  • Treat health, finance, tax, and legal outputs as planning aids, not professional advice.
  • Save the inputs that produced an important result so you can reproduce it later.

Good next steps

These links move the current task into a more complete workflow.

  1. 1 Discount Calculator Sale price, amount saved, % off — plus stacked discounts, BOGO, spend-X-save-Y, tax, and reverse % — instant, browser-only Open
  2. 2 ROI Calculator ROI %, net gain, annualized ROI (CAGR) and payback period — one screen, share a link — 100% in your browser Open
  3. 3 Percentage Calculator 5 common percentage calculations — "x% of y", "x is what% of y", percentage change, increase/decrease — instant, browser-only Open

Real-world use cases

  • Price a retail product from a supplier markup

    Your supplier quotes goods at $12 a unit and your store's policy is a standard 60% markup. Enter cost 12 and markup 60 — the shelf price comes back at $19.20, with the margin shown right beside it at 37.5%. That second number is what you report to your accountant and what you compare against the rent-and-payroll line. Reading both at once stops the most common retail mistake: assuming a 60% markup means you keep 60 cents on the dollar, when you actually keep 37.5.

  • Hit a target margin in an e-commerce listing

    Marketplace fees and ads mean you need at least a 35% margin to stay profitable, and the market won't bear more than $29.99 for the item. Switch to Price + Margin %, enter 29.99 and 35, and the tool tells you the most you can pay for stock: about $19.49. Now you have a hard ceiling to take into your next supplier negotiation instead of guessing and discovering the loss after the quarter closes.

  • Set wholesale tiers that protect your floor

    You sell direct at a 50% margin but want a wholesale price that still leaves a 20% margin for you. Enter your cost in Cost + Margin %, read the retail price, then re-run with margin 20 to get the wholesale price. Sharing the URL with a buyer sends them the exact scenario, so the negotiation starts from the same numbers rather than two spreadsheets that disagree by a rounding error.

  • Cost a restaurant dish to a food-cost target

    A plate that costs $4.20 in ingredients needs to clear the kitchen's 28% food-cost rule, which is the same thing as a 72% margin. Use Cost + Margin %, enter 4.20 and 72, and the menu price lands at $15. The markup readout (about 257%) is the multiple you'll see chefs quote as "price at 3.5x food cost" — seeing both framings confirms the menu price and the food-cost percentage agree before it goes to print.

  • Explain markup vs margin to a new team member

    Someone on the team keeps setting "50% margin" by adding 50% to cost. Open Cost + Markup %, enter cost 10 and markup 50 to show the $15 price and 33.3% margin, then switch to Cost + Margin % with the same $10 cost and 50 margin to show the $20 price they actually meant. Two screenshots, side by side, end the argument faster than any whiteboard — and the shareable link lets them replay it later.

Common pitfalls

  • Setting a markup percentage when you meant a margin percentage. A 50% markup is only a 33.3% margin, so pricing at 'cost + 50%' when your target was a 50% margin under-charges every order. Decide which base you mean — cost or selling price — before you type the number.

  • Pricing off the tax-inclusive amount. Markup and margin must be computed on pre-tax cost and price; folding sales tax into the price inflates the reported margin above the money you actually keep. Keep tax in its own line.

  • Trying to push margin to 100% or above. Margin caps below 100% because the formula divides by (1 − margin), and a 100% margin implies zero cost. If you need an extreme multiple over cost, use markup instead, which has no ceiling.

Privacy

Every calculation — markup, margin, price, cost, profit and the tax-inclusive line — is plain JavaScript that runs inside your browser tab. Your cost and price figures never reach a server, there is no logging of what you price, and there are no third-party analytics on the numbers themselves. The one thing to know: the shareable URL encodes your inputs in the query string (for example ?m=costMarkup&a=10&b=50) so a "share link" reopens the exact pricing scenario. That is handy for sending a quote to a partner, but it means anyone who receives the link — and the access log of whatever app you paste it into — can read those numbers. For a confidential cost or margin, copy the result text manually instead of sharing the URL.

FAQ

Tool combos

Folks in your role tend to reach for these alongside this tool.

Made by Toolora · 100% client-side · Updated 2026-06-13