Margin vs. Markup Calculator
See what you make on a sale. Enter the cost and selling price to compare profit, margin and markup side by side.
Your figures stay in your browser.Profit before fees, discounts and tax
Use the same currency for both prices. Margin is the share of the selling price you keep. Markup is how much you add to the cost, as a percentage.
Advanced settings
The basic comparison above remains automatic and excludes fees, discounts and tax. Choose Calculate scenario for the optional calculations below. Closing keeps your choices.
Targets use adjusted profit after fees. Margin divides by net sales excluding entered tax; markup divides by cost. Target prices are verified against actual rounded cash amounts and may differ from the unrounded formula. They are checked candidates, not guaranteed minimum prices.
Multi-product CSV
Use name,cost,price with an optional final quantity column. Prices and fees use the same assumptions as the current scenario. Up to100products/64KiB; quantity1–100000. Main inputs stay unchanged.
Basic margin divides profit by selling price; basic markup divides by cost. Optional scenarios subtract fees and remove only the tax you enter. Currency is a label, with no conversion. Amounts are per unit; scenarios round cash half-up to cents before multiplying quantities.
Numbers accept a dot or comma decimal separator, without grouping. Monetary amounts are labelled in USD; no currency conversion is performed. These are estimates rounded to two decimals, except itemized budgets and expense splits, which use exact cents.
Enter your own values or try an example.
How to use Margin vs. Markup Calculator
Enter Cost and Selling price in the same currency. The basic profit, gross margin and markup update automatically. Margin divides profit by selling price; markup divides by cost. Markup is undefined for zero cost.
Open Advanced settings for a currency label, fees, discount, included tax, targets, products or sensitivity. Currency changes labels only. Optional scenarios accept cash amounts with up to two decimal places. Choose Calculate scenario to produce results; closing settings keeps your choices. Editing a source or option hides stale scenario results.
A percentage fee uses the actual discounted customer charge, including any entered tax. The fixed fee applies per unit. If Selling prices include entered tax is selected, net sales remove that entered rate. Cost is already a net amount. Adjusted profit is net sales minus cost and fees, and adjusted margin divides that profit by net sales.
Choose price from target margin, price from target markup or maximum cost from target margin. Targets include the entered fee, discount and tax assumptions. Returned candidates are checked against rounded cash amounts; no-price and undefined cases are explained. Apply solved value updates the main fields explicitly. The basic comparison then continues to show its simpler pre-adjustment calculation.
Product CSV uses name,cost,price and optional quantity. Choose a file or paste data, then Calculate scenario. Invalid rows stay visible and are excluded from weighted totals explicitly. CSV and text reports contain every row. Their quantities multiply the already rounded per-unit scenario. Copy offers selected text if clipboard access fails. Clear, example and Undo preserve the original main workflow; Reset advanced settings keeps main inputs.
Example: margin and markup use different amounts
Cost60 and selling price100 give profit40. Gross margin is40÷100=40%; markup is40÷60≈66.67%. A40%markup would give a price of84, rather than100.
With cost60, price125 including an entered25%tax rate, the net sale is100 and included tax25. A4%fee on the customer charge is5, so adjusted profit is35 and adjusted margin35%. A discount changes the charge, tax and percentage fee together.
About gross margin and adjusted pricing
Gross margin and markup compare the same basic profit to different denominators. Optional adjusted scenarios also subtract the fees you enter. These labels describe this calculator’s arithmetic; they do not decide which taxes or expenses apply to a business.
Scenario cash is rounded half-up to cents at charge, net-sales and percentage-fee steps. The fixed fee is then added once. Target prices start from the continuous formula and move upward in one-cent steps until the rounded outcome meets the target, within a bounded search. The result is a verified candidate, without a claim that it is the globally smallest price.
The sensitivity chart connects nine sampled prices, with an accessible table. The conversion table uses the unadjusted algebraic relationship and cannot replace the actual fee-adjusted scenario. Weighted CSV margins divide aggregate profit by aggregate net sales; they do not average row percentages. All processing stays in this tab without uploads, automatic storage or currency conversion.
Stars and feedback
Loading…
What could we improve in Margin vs. markup calculator?
Email us feedback@tooltulip.com
Tool reference #002