Gross Profit Markup Calculator & Formula
- Markup
- %
- Result
- Gross profit
- $
- Result
- Cost price
- 50 $
- You entered
This calculator works out the selling price you need for a given gross profit margin, or the markup percentage from cost and selling price. Enter any two of cost, selling price, or margin, and it returns the missing value plus the markup percentage. The formulas are standard business math and apply to any product or service.
Formula
Two related formulas are used, and confusing them is the most common error.
- Markup percentage = (Selling Price − Cost Price) ÷ Cost Price × 100
- Gross profit margin percentage = (Selling Price − Cost Price) ÷ Selling Price × 100
Where:
- Selling Price is what the customer pays, in dollars (or any currency).
- Cost Price is what you pay to acquire or produce the item, in the same currency.
- Gross profit is Selling Price − Cost Price, in dollars.
Notice the denominators differ. Markup divides profit by cost; margin divides profit by selling price. That is why a 50% markup equals a 33.33% margin, not 50%.
Worked Example
Using the default values: cost = $50, selling price = $80.
- Gross profit = $80 − $50 = $30
- Markup = ($30 ÷ $50) × 100 = 60%
- Margin = ($30 ÷ $80) × 100 = 37.5%
The calculator shows a 60% markup and a 37.5% margin. If you only knew the cost and wanted a 37.5% margin, you would set selling price = cost ÷ (1 − 0.375) = $50 ÷ 0.625 = $80.
When to Use Markup vs. Margin
Use markup when you set prices from cost—common in retail, wholesale, construction, and food service. For example, a retailer buying a shirt for $20 and wanting a 50% markup adds $10, selling at $30.
Use margin when you plan around a target profit percentage of sales—common in budgeting, financial reporting, and pricing services. If a consulting firm wants a 40% margin on a project costing $1,000, the price must be $1,000 ÷ (1 − 0.40) = $1,666.67.
Many businesses state a target margin in their annual plan, but then accidentally apply it as a markup. That error silently lowers profit. For instance, a 40% margin on a $100 cost gives a $66.67 profit, while a 40% markup gives only $40 profit.
How to Calculate Selling Price from Cost and Margin
If you know cost and target margin, the formula is:
Selling Price = Cost ÷ (1 − Margin) (margin as a decimal).
Example: Cost = $40, target margin = 25% (0.25). Selling price = $40 ÷ (1 − 0.25) = $40 ÷ 0.75 = $53.33. Check: profit = $13.33, margin = $13.33 ÷ $53.33 = 25%.
If you know cost and target markup, the formula is simpler:
Selling Price = Cost × (1 + Markup) (markup as a decimal).
Example: Cost = $40, target markup = 25% (0.25). Selling price = $40 × 1.25 = $50. Profit = $10, margin = 20%.
Common Mistakes and Misconceptions
- Confusing markup and margin: A 100% markup is a 50% margin. A 100% margin is impossible because it would require zero cost.
- Using the wrong denominator: Markup divides by cost; margin divides by selling price. Swapping them changes the result.
- Forgetting to convert percentages: Always divide the percentage by 100 before using it in a formula.
- Ignoring other costs: This calculator only covers the direct cost of the item. It does not include overhead, shipping, taxes, or payment processing fees. If those are significant, add them to the cost first.
- Rounding too early: Round only the final answer, not intermediate steps, to avoid small errors that compound.
Limits of This Calculation
The formulas assume a simple single-product scenario with no discounts, bundles, or variable costs. In practice:
- If you offer volume discounts, the margin changes per sale.
- If you have fixed costs (rent, salaries), they are not included. You need to cover them with the total gross profit, not per-unit margin.
- If you sell multiple products, a weighted average margin is more useful than individual markups.
- The calculator does not account for demand elasticity—raising price may lower units sold, affecting total profit.
For a full picture, combine this with a break-even analysis that includes fixed costs.
Frequently Asked Questions
What is the difference between markup and margin?
Markup is the percentage of cost added to get the selling price. Margin is the percentage of the selling price that is profit. For example, if an item costs $80 and sells for $100, the markup is 25% ($20/$80) and the margin is 20% ($20/$100).
How do I calculate a 20% margin?
Divide the cost by (1 − 0.20) = 0.80. So for a $50 cost, selling price = $50 / 0.80 = $62.50. The profit is $12.50, which is 20% of $62.50.
How do I calculate a 20% markup?
Multiply the cost by 1.20. For a $50 cost, selling price = $50 × 1.20 = $60. The profit is $10, which is 20% of the cost.
Why is a 50% markup not a 50% margin?
Because the denominators are different. A 50% markup on a $100 cost gives a $50 profit and a $150 selling price. The margin is $50/$150 = 33.33%. To get a 50% margin, you need a 100% markup (cost $100, selling price $200).
What is a good markup percentage?
It varies widely by industry. Grocery stores often work on margins of 1–3%, while clothing retailers may aim for 50% or more. There is no universal “good� number—it depends on your costs, competition, and volume.
Does the calculator work in any currency?
Yes, because the formulas only use ratios. As long as cost and selling price are in the same currency, the markup and margin percentages are correct.
Related
Formula used
in cost | Cost price | $ | 50 | 0 in sell | Selling price | $ | 80 | 0 out margin | Gross profit margin | % | (sell - cost) / sell * 100 | 2 out markup | Markup | % | (sell - cost) / cost * 100 | 2 out profit | Gross profit | $ | sell - cost | 2
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.