Margin Calculator
Work out profit margin, markup, and the selling price you need from any combination of cost, revenue, and target margin.
What do you know?
Margin formula: (Revenue − Cost) / Revenue × 100
Markup formula: (Revenue − Cost) / Cost × 100
Profit margin is the clearest measure of your pricing strategy's success. This calculator provides the three most vital metrics for any small business owner or retailer: gross profit margin, markup percentage, and the final selling price you should charge to achieve those returns. Let's get started.
Profit Margin vs. Markup: Understanding the Core Formulas
Gross profit margin and markup are two of the most foundational concepts in retail and ecommerce, yet they are frequently confused. Both measure profitability, but they approach it from different angles. Markup is the amount by which you increase a product's cost to arrive at a selling price. Profit margin, on the other hand, is the percentage of the final selling price that is actual profit.
The formula for markup is straightforward: Markup = (Selling Price - Cost) / Cost. The result is expressed as a percentage. For example, if you buy a product for $10 and sell it for $15, you have a $5 profit. Your markup is $5 / $10 = 0.5, or 50%.
The formula for gross profit margin is: Gross Profit Margin = (Selling Price - Cost) / Selling Price. Using the same example, your gross profit margin would be ($15 - $10) / $15 = 0.33, or 33.3%. This shows that for every dollar of revenue, you are earning about 33 cents in gross profit. As you can see, the margin is always a lower percentage than the markup.
A Step-by-Step Pricing Example
Let's walk through a real-world scenario. Imagine you run a small online store selling handmade leather wallets. Your cost to produce one wallet, including materials and labor, is $40. You want to determine the selling price to achieve a desired profit margin.
First, you decide on a target gross profit margin of 60%. To find your selling price, the formula is: Selling Price = Cost / (1 - Gross Profit Margin). Plugging in our numbers, we get: $40 / (1 - 0.60) = $40 / 0.40 = $100. So, you should price the wallet at $100 to achieve a 60% gross profit margin.
Now, let’s calculate your markup on this item. Using the markup formula from the previous section: Markup = ($100 - $40) / $40 = $60 / $40 = 1.5, or a 150% markup. This means you are marking up the wallet by 1.5 times its cost. This single example illustrates the crucial relationship between cost, selling price, margin, and markup. Understanding this is the key to pricing your products effectively.
Common Pricing Calculation Pitfalls
One of the most frequent errors in business finance is using markup and margin interchangeably. As our example showed, a 50% markup and a 50% profit margin are not the same. If you calculate your selling price by simply adding 50% to your cost (a 50% markup), you will end up with a much smaller profit margin than 50%. For a $10 cost, a 50% markup gives a $15 selling price, which results in a 33.3% profit margin. Believing this is a 50% margin can lead to significant shortfalls in expected profits.
Another common mistake is to only consider the cost of goods sold (COGS) when calculating profit. While this calculator focuses on gross profit margin, business owners must also account for operating expenses, such as rent, marketing, salaries, and utilities. Your gross profit margin needs to be high enough to cover all these other costs and still leave you with a net profit at the end of the day. A healthy gross margin is a great start, but it's only half the story of your business's financial health.
Practical Tips for Setting Prices
While the math is essential, setting the right price also involves a degree of art and market awareness. Don't set your prices in a vacuum. Research your competitors to see how they are pricing similar products. This doesn't mean you should blindly copy their prices, but it provides a valuable benchmark. If your product offers superior quality, better features, or a stronger brand reputation, you may be able to justify a higher price point. If your product is more basic, you might need to price it more competitively.
Consider your overall brand positioning. Are you a premium brand, a budget-friendly option, or somewhere in between? Your pricing strategy should be consistent with your brand identity. A luxury brand can command higher profit margins, while a value brand relies on lower margins but higher sales volume. Experiment with different price points and track your sales and profitability to find the sweet spot for your products and your target audience. Your pricing strategy should be a dynamic and evolving part of your business plan, not a one-time decision.
Frequently asked questions
What is the difference between margin and markup?
Margin is profit as a % of revenue: (Revenue − Cost) / Revenue. Markup is profit as a % of cost: (Revenue − Cost) / Cost. A 50% markup is a 33.3% margin — don't confuse the two when pricing.
What is the formula for profit margin?
Profit Margin (%) = (Revenue − Cost) / Revenue × 100. If you sell for $100 and it cost $60, your margin is ($100 − $60) / $100 = 40%.
How do I find the selling price for a target margin?
Revenue = Cost / (1 − Margin). For a 40% target margin on a $60 cost, you need $60 / 0.60 = $100. Use the 'cost + target margin' mode above to do this in one step.
How do I find the selling price for a target markup?
Revenue = Cost × (1 + Markup). A 50% markup on $60 = $60 × 1.50 = $90 — which is only a 33.3% margin.
What is a healthy profit margin?
It depends on the industry. Grocery: 1–5%. Restaurants: 3–9%. Retail: 25–50%. SaaS: 70–90% gross. Compare to peers in your category — and remember margin only covers cost of goods, not operating expenses.
Why can't I have a 100% margin?
A 100% margin would mean cost is $0 — the item is free to acquire. You can have 100%+ markup (selling for double cost = 100% markup = 50% margin), but margin is capped just below 100%.
Does this include taxes or fees?
No — these are pre-tax, pre-fee figures. To get net margin after marketplace fees, payment processing, or shipping costs, subtract those from revenue (or add to cost) before entering.
How do I convert a markup % to a margin %?
Margin = Markup / (1 + Markup). So a 50% markup = 0.5 / 1.5 = 33.3% margin. A 100% markup (selling for 2× cost) = 50% margin. Going the other way: Markup = Margin / (1 − Margin).
Related calculators
Browse all Money →Wedding Budget Calculator
Standard wedding budget breakdown across venue, catering, photo, attire, flowers, music, and more.
Sales Tax Calculator
Add sales tax, GST, HST, or VAT to any price and see the final total.
Discount Calculator
Find the sale price after any percentage discount.
Inflation Calculator
What a dollar from any year is worth today — adjust for the inflation rate.
Mortgage Calculator
Monthly payment, taxes, insurance, and required income.
Car Payment Calculator
Monthly car payment including tax, trade-in, and down payment.
Loan Calculator
Monthly payment and total interest for any personal or auto loan.
Tip Calculator
Calculate tips and split the bill between any number of people.