Margin Calculator
Your cost per unit
Price you sell at
Profit
$30.00
Profit Margin
37.50%
Profit ÷ Revenue
Markup
60.00%
Profit ÷ Cost
Gross Margin
37.50%
Same as profit margin
Margin vs Markup Explained
Profit Margin
Profit as percentage of selling price
$30.00 ÷ $80.00 = 37.50%
Markup
Profit as percentage of cost
$30.00 ÷ $50.00 = 60.00%
About the Margin Calculator
The Margin Calculator works out profit margin and markup so you can price products for profitability and understand how much of each sale you actually keep. Given a cost and either a selling price or a desired margin, it returns the profit, the profit margin as a percentage of revenue, and the markup as a percentage of cost. These two figures are frequently confused, and clarifying the difference is one of the most valuable things the tool does.
Profit margin is calculated as profit divided by selling price, expressed as a percentage, while markup is profit divided by cost. Because the denominators differ, a 50 percent markup is only a 33 percent margin, and the gap widens as numbers grow. The calculator can also run in reverse, taking a target margin and a known cost to derive the selling price you must charge, which is exactly what you need when setting prices from a profitability goal.
Retailers and e-commerce sellers use it to set prices that hit gross-margin targets, freelancers and agencies use it to mark up pass-through costs, and finance teams use it to evaluate product-line profitability. It is also useful for quoting jobs, since you can plug in materials and labor cost and immediately see the price required to earn the margin you want.
A practical tip is to always be explicit about whether a stakeholder means margin or markup, because pricing decisions built on the wrong one erode profit silently. Pair this with a Discount Calculator to confirm a sale still leaves you in the black, and a Sales Tax Calculator when you need to present a customer-facing price that includes tax.
Frequently asked questions
- What is the difference between margin and markup?
- Margin is profit as a percentage of the selling price, while markup is profit as a percentage of the cost. A 50 percent markup equals only a 33 percent margin because the denominators differ.
- How do I calculate profit margin?
- Subtract cost from selling price to get profit, then divide profit by the selling price and multiply by 100. A $40 item costing $30 has $10 profit and a 25 percent margin.
- How do I find the selling price for a target margin?
- Divide the cost by one minus the desired margin. To earn a 40 percent margin on a $30 cost, charge 30 / 0.60, which is $50.
- Why does a discount eat into margin faster than expected?
- Discounts come straight out of profit, not cost, so a small price cut can wipe out a large share of a thin margin. Check the post-discount price against your cost to confirm you are still profitable.
Calculate Return on Investment
Calculate business breakeven point
Calculate sale prices and discounts
Calculate how investments grow over time
Calculate simple interest on loans or investments
Calculate daily compounding interest