Profit Margin Calculator: Find Margin, Markup, and Selling Price Instantly
Use the free Profit Margin Calculator to turn cost and selling price into profit, margin %, and markup % β or work backwards to the price and cost you can afford.
Table of Contents
Pricing guesses are expensive. A product that βfeelsβ profitable can still lose money once cost, discounts, and tax sit next to the selling price. The Profit Margin Calculator turns two numbers into a complete picture: profit in currency, profit margin as a percent of revenue, and markup as a percent of cost.
Open the tool, pick a mode, and calculate. Nothing is uploaded. Currency formatting follows your language (USD or THB), so the same math works for a US Shopify store or a Thai retail counter.
This guide explains the three modes, why margin and markup are not interchangeable, and how to use the results when you set a price, bid a job, or check a supplier quote.
Why Use a Profit Margin Calculator?
- Three directions, one formula set. Find margin from cost and revenue, selling price from a target margin, or the maximum cost you can pay and still hit that margin.
- Margin and markup side by side. A 50% margin is a 100% markup on a $50 cost / $100 price. Seeing both numbers stops the most common pricing error in retail.
- Locale-aware money. Results format as dollars or baht so you can paste them into a quote without retyping separators.
- Safe edge cases. Zero cost, zero revenue, and 100% target margin are handled without exploding into infinity on screen.
- Copy a summary. One click copies cost, revenue, profit, margin, and markup for a spreadsheet, invoice note, or Slack thread.
- Private by design. All math runs in the browser. Cost and price never leave your device.
Key Features
| Feature | What it does |
|---|---|
| Margin mode | Cost + selling price β profit, margin %, markup % |
| Revenue mode | Cost + target margin β required selling price |
| Cost mode | Selling price + target margin β maximum affordable cost |
| Copy summary | Plain-text snapshot of the active calculation |
| Reset | Restores the sample numbers so you can start over |
- Tabs, not hidden options. Switch Margin / Revenue / Cost without losing the idea of what you are solving for.
- Numeric sanitizing. The inputs keep digits, a minus, and one decimal point so pasted invoices do not break the form.
- Offline-capable. Once the page is loaded, you can keep pricing SKUs without a network round-trip.
How to Use
- Open the Profit Margin Calculator and choose a tab: Margin, Revenue, or Cost.
- Enter the two known values. In Margin mode that is cost and revenue (selling price). In Revenue mode, cost and a target margin percent. In Cost mode, revenue and a target margin percent.
- Click Calculate. Profit appears in currency; margin and markup appear as percents to two decimal places.
- If the result is the number you need for a quote, click Copy Summary and paste it into your document.
- Click Reset when you move to the next SKU so leftover figures do not leak into the next run.
Worked example (Margin mode): cost $50, revenue $100 β profit $50, margin 50.00%, markup 100.00%.
Understanding Margin vs Markup
Profit is simple: profit = revenue β cost. The two percentages are not.
Profit margin asks: βWhat share of the selling price is profit?β
margin % = (profit / revenue) Γ 100
With $50 cost and $100 price, margin is 50%. Half of every dollar of sales is leftover after cost of goods.
Markup asks: βHow much did I add on top of cost?β
markup % = (profit / cost) Γ 100
Same numbers: markup is 100%. You doubled the cost. Teams that say βwe need 50% markupβ and then price as if they meant 50% margin undercharge by a wide gap.
The reverse formulas are what Revenue mode and Cost mode implement:
revenue = cost / (1 β margin/100) cost = revenue Γ (1 β margin/100)
Target 40% margin on a $50 cost: selling price must be $50 / 0.60 = $83.33, profit $33.33, markup 66.67%. Target 40% margin on a $100 list price: you cannot pay more than $60 for the goods.
A 100% margin is a mathematical wall (division by zero). The calculator clamps target margin between β100% and 100% and will not invent a selling price when the denominator is zero. Negative margin is a loss: useful when you are checking a clearance price, not when you are setting list.
This tool reports gross margin from the two numbers you type. It does not subtract VAT, payment fees, shipping, or overhead. For tax on a price, use a dedicated VAT or tax calculator after you know the pre-tax selling price.
Industry βhealthyβ margins vary. Grocery often runs single-digit gross margin on volume. Software and digital goods can sit well above 70% because incremental cost is near zero. Compare your result to your category, not to a generic 50%.
Practical Use Cases
Retail and e-commerce list price
You buy a gadget for $42 and want a 35% gross margin after COGS. Revenue mode: cost 42, target margin 35 β selling price about $64.62. If your marketplace fee is extra, treat the fee as part of cost or lower the target so the net margin still holds after fees.
Supplier quote vs target margin
A client will pay $1,200 for a batch. You need 25% margin. Cost mode: revenue 1200, target 25 β maximum cost $900. If the supplier quotes $980, you either raise the price, cut spec, or accept a thinner margin. The calculator makes that conversation a number instead of a feeling.
Freelance and project bids
A designerβs out-of-pocket cost (stock, subcontract, tools) is $180. They want 45% margin on the invoice. Revenue mode prices the job at $327.27. That is not an hourly rate β it is a floor so the invoice still leaves profit after those costs. Pair it with an hourly or salary tool when time is the real scarce input.
Clearance and loss-leader checks
Margin mode with cost 20 and sale price 16 shows profit β$4 and margin β25%. That is honest. Use it when a β10% offβ sticker is actually a loss once you remember what you paid, or when you are choosing how deep a promo can go before it eats the weekβs average margin.
Best Practices
- Decide margin or markup in writing. Put the word in the spreadsheet column header so a 40% cell cannot be misread.
- Put true landed cost in the cost box. Include shipping-in, duties, and packaging. Understated cost inflates both percentages.
- Re-run after discounts. A 20% off coupon on a 50% margin item is not a 30% margin leftover β recompute with the discounted revenue.
- Copy the summary, do not retype. Transcription errors on percent signs are how 50% becomes 5% in a pitch deck.
- Treat 100% margin as a stop sign. You cannot have profit equal to the entire selling price unless cost is zero.
- Separate gross from net. This calculator is COGS vs price. Operating expenses belong in a P&L, not in a two-field margin.
Ready to price the next SKU? Open the Profit Margin Calculator, pick the mode that matches the two numbers you already know, and calculate.
Related Tools You Might Like:
- Discount Calculator β see the sale price after a percent or amount off, then drop that revenue back into the margin tool.
- VAT Calculator β add or strip VAT so you compare margin on the tax-exclusive price.
- Percentage Calculator β general percent-of, percent-change, and reverse-percent math when you are not pricing a product.
Happy pricing.