Profit Margin and Markup Calculator
Calculate gross profit, margin, and markup from selling price and cost.
Calculator InputsFormula v1.0
Profit = selling price - cost; margin = profit / selling price × 100%
Gross profit
Formula and method
Profit = selling price - cost; margin = profit / selling price × 100%Margin uses revenue as its denominator; markup uses cost.
Variables
- cost
- Cost
- selling
- Selling price
Worked example
A product costing 60 and selling for 100 has 40% margin and 66.67% markup.
Who this calculator is for
Small businesses, retailers, freelancers, and product sellers.
Complete guide to the profit margin and markup calculator
Every figure below comes from this calculator itself. The method is Profit = selling price - cost; margin = profit / selling price × 100%, applied to the tool's default inputs and then stress-tested one input at a time.
What the Profit Margin and Markup Calculator works out
Profit Margin and Markup Calculator answers one specific question: Calculate gross profit, margin, and markup from selling price and cost. It is written for small businesses, retailers, freelancers, and product sellers.
The method is Profit = selling price - cost; margin = profit / selling price × 100%. The inputs are Cost, Selling price. With the default values - Cost = 60, Selling price = 100 - the result is Gross profit: 40.00. Raising Cost from 60 to 66.00 moves the headline result from 40.00 to 34.00.
Working through the reported figures
Alongside 40.00 this method reports 2 supporting quantities: Gross margin: 40.00%; Markup on cost: 66.67%. Taken together they show which input moved the answer and by how much.
The worked example is: A product costing 60 and selling for 100 has 40% margin and 66.67% markup. Use it to confirm the direction of the calculation before entering your own figures, and keep intermediate values unrounded until the final step.
How to interpret the answer
Margin uses revenue as its denominator; markup uses cost.
Read it as one scenario: 40.00 with gross margin at 40.00% holds only for the inputs shown. Change whichever input you are genuinely unsure about and read the pair of figures together.
Work the relationship both ways: start from the inputs, arrive at 40.00, then ask what input value would be needed to produce a target you already have in mind.
Try the arithmetic once with rounded numbers to see whether 40.00 responds as you would predict, and cross-check the figure against a second source before relying on it.
Common mistakes to avoid
Marking a product up by 40% and calling the result a 40% margin; a 40% markup on cost produces only a 28.57% margin on price. Leaving freight, packaging, marketplace commission or card fees out of cost, which inflates the apparent margin.
Before relying on the figure, re-read Cost, Selling price and confirm each entry matches its label, including whether a quantity is entered in the unit the label names. Adjust Cost on its own and watch whether the result behaves as the method says it should - here 40.00 should shift smoothly rather than jump.
Limitations and responsible use
Works with a single unit cost and selling price and does not allocate overheads, discounts or returns. Margin and markup are always expressed against one sale, so volume discounts need a separate calculation.
Each number above is bounded by the limits just described, so treat it as a conditional result. Every figure here can be reproduced by hand from the formula shown, but no calculation can confirm that the inputs match your actual circumstances. For a consequential decision, check the current figure against a primary source, since published values are revised.
Frequently asked questions
If something costs 60 and sells for 100, what is the margin?
Gross profit is 40. Margin is 40 ÷ 100 = 40% of the selling price, while markup is 40 ÷ 60 = 66.67% of the cost. Both describe the same 40 units of profit.
How do I convert a target margin into a selling price?
Divide cost by one minus the target margin. A 60% margin on a 60 cost needs 60 ÷ 0.4 = 150, which is well above the 100 that a 60% markup would produce.
Related Business Calculators
Explore another calculator in this subject.
Margin and Markup Calculator – Convert Between Cost, Price, Margin and Markup
Move between cost, selling price, gross margin and markup in any direction, including the selling price needed to hit a target margin or the cost ceiling for a target markup.
Discount Calculator – Sale Price, Savings and Stacked Discounts
Find the sale price after one or two stacked discounts, the amount saved, and the effective combined discount rate, with optional sales tax on the discounted price.
Monthly Budget Calculator – Surplus, Deficit and the 50/30/20 Split
Enter take-home income and your main expense categories to see what is left each month, your savings rate, and how your spending compares with the 50/30/20 guideline.