Neweb / Free tools / Profit Margin Calculator

Profit Margin Calculator.

Enter your cost price and selling price. We compute your profit, your margin percent, and your markup percent in one view, so you can price with confidence. Runs entirely in your browser.

Margin is profit as a percent of selling price. Markup is profit as a percent of cost price. Both are useful, for different purposes. All maths runs in your browser.

Sample output

What you'll get.

A real example of what this tool produces. Run it above with your own inputs.

Profit: Rs 200.00
Selling price Rs 600 minus cost price Rs 400.
Margin: 33.33%
Profit as a percentage of the selling price.
Markup: 50.00%
The same profit, expressed as a percentage of cost.
Sample calculation. Enter your own cost and selling price above.

Margin and markup are the two most commonly confused numbers in small business pricing, and mixing them up quietly erodes profit. A shop owner who wants a 50 percent margin but instead applies a 50 percent markup ends up with a real margin of only 33.3 percent, a mistake that can cost thousands of rupees across a year of sales without anyone noticing the gap.

This calculator clears up the confusion by showing both numbers side by side from the same two inputs. Enter your cost price and your selling price, and get the rupee profit, the margin (profit as a percentage of selling price), and the markup (profit as a percentage of cost price) in one view. Use whichever number matters for your context: margin for judging true profitability, markup for setting a selling price from a known cost. Everything runs in your browser.

How to use the profit margin calculator

  1. Enter your cost price in rupees, what it actually costs you to buy or produce the item, including materials and direct costs.

  2. Enter your selling price in rupees, what you charge the customer.

  3. Click Calculate margin. The margin percentage appears in large figures at the top.

  4. Read the breakdown below: the rupee profit, the margin as a percent of selling price, and the markup as a percent of cost price.

  5. Use the margin figure to judge true profitability across products, since it correctly accounts for the fact that percentages of a bigger selling price are not directly comparable to percentages of cost.

  6. Use the markup figure when you know your cost and want to set a selling price target, since retailers often think and negotiate in markup terms.

Why this matters for your business

Three reasons to check margin and markup separately rather than assuming they are the same thing.

They are never the same number except at zero. A 50 percent markup on cost is only a 33.3 percent margin on selling price. Confusing the two when setting prices or reading a competitor supplier terms leads directly to under-pricing.

Margin is what actually measures profitability. When comparing two products or two months of sales, margin as a percent of revenue is the number investors, accountants and most business dashboards actually track, not markup.

Markup is what you use when pricing forward. If a supplier gives you a cost price and you want a specific rupee profit, thinking in markup terms, "add 50 percent to cost", is often the more natural way to set the price than working backward from a margin target.

Tips for better results

  • Remember the shortcut: margin is always a smaller percentage than markup for the same profit, except when profit is zero.
  • To hit a target margin, use the formula: selling price equals cost price divided by (1 minus target margin as a decimal).
  • Include all direct costs, materials, packaging, and directly attributable labour, in your cost price for an accurate margin, not just the raw material cost.
  • Compare margins across products in the same category rather than across very different categories, since acceptable margins vary widely by industry.
  • A shrinking margin over time on the same product, even with a stable selling price, often signals rising input costs you have not yet passed on.
  • When negotiating with suppliers, ask for their price as a straight cost figure and calculate your own margin, rather than trusting a supplier quoted "margin" without verifying the base.

Example

A real-world walkthrough

A home baker in Lucknow sells a box of six cupcakes for Rs 600. Her ingredient and packaging cost per box works out to Rs 400. She enters 400 as the cost price and 600 as the selling price. The tool shows a profit of Rs 200, a margin of 33.33 percent, and a markup of 50 percent.

She had assumed her "50 percent margin" from a common markup habit was accurate, but seeing the true margin at 33.33 percent makes her realise she is running a thinner business than she thought. She recalculates her target selling price to hit an actual 40 percent margin: cost divided by (1 minus 0.40), which is 400 divided by 0.60, giving a target selling price of about Rs 667. She rounds up to Rs 670 for her next batch, and her real margin on every future box crosses 40 percent.

Frequently asked questions

What is the difference between margin and markup?

Margin and markup both measure the same rupee amount of profit, but they express it as a percentage of two different base numbers. Margin is profit divided by the selling price, so it tells you what portion of the money a customer pays actually ends up as profit. Markup is profit divided by the cost price, so it tells you how much you added on top of what the item cost you. Because the selling price is always higher than the cost price whenever there is a profit, the same rupee profit always produces a smaller margin percentage than markup percentage. For example, a Rs 200 profit on a Rs 400 cost and Rs 600 selling price is a 33.33 percent margin but a 50 percent markup, the same profit expressed two different ways. This calculator shows both figures from the same two inputs specifically because businesses often need one or the other depending on the situation, and confusing which one you are using is one of the most common pricing mistakes small business owners make.

Which one should I use to price my products?

Use markup when you are working forward from a known cost price to decide what to charge, since it is the more natural way to think about adding a profit layer on top of what something cost you to make or buy; for instance, deciding to sell at cost plus 50 percent markup is a common and intuitive pricing rule. Use margin when you want to know your true profitability as a percentage of revenue, which is the number that actually reflects how much of every rupee a customer pays ends up as profit, and it is the figure most useful for comparing profitability across different products, tracking performance over time, or reporting to an investor or accountant. Many businesses use markup as their day-to-day pricing shortcut but check margin periodically to understand their real profitability picture, since a markup that feels generous can still translate into a surprisingly thin margin, as this calculator demonstrates clearly with the same numbers side by side.

How do I set a price to hit a target margin?

If you know your cost price and want to hit a specific target margin percentage, rather than a target markup, the formula is selling price equals cost price divided by the quantity one minus the target margin expressed as a decimal. For example, if your cost price is Rs 400 and you want a 40 percent margin, you calculate 400 divided by the quantity one minus 0.40, which is 400 divided by 0.60, giving a target selling price of approximately Rs 667. This is a different, and often less intuitive, calculation than simply adding a percentage markup to cost, which is exactly why margin-based pricing goals are frequently miscalculated by people used to thinking in markup terms. Once you compute a candidate selling price this way, you can verify it by entering both the cost and that selling price back into this calculator, which will confirm the margin percentage you actually land on before you commit to the price.

What margin is considered healthy for a small business?

There is no single healthy margin that applies across all businesses, since acceptable margins vary enormously by industry: retail and grocery businesses often operate on thin margins in the range of 5 to 15 percent due to high volume and intense competition, while service businesses, boutique products, and specialised manufacturing can comfortably run margins of 40 percent or higher because their costs are different and their competition is less price-driven. Rather than chasing a generic benchmark, the more useful approach is to compare your own margin against your own historical numbers over time, watching for a shrinking margin as an early warning sign of rising costs you have not yet passed on to customers, and against direct competitors in your specific category and city, where you actually have visibility into pricing. A margin that comfortably covers your fixed costs, leaves room for reinvestment, and still allows you to price competitively is a reasonable practical target, whatever the specific percentage turns out to be for your business.

Should I include all costs or just the raw material cost?

For an accurate and useful margin figure, your cost price should include every direct cost that is specifically attributable to producing or acquiring that particular item, not just the raw material cost. This typically includes materials, packaging, and any directly attributable labour or production cost per unit. It generally does not need to include your broader fixed overheads, like rent, salaries not tied to production, or general marketing spend, since those are usually accounted for separately in an overall profitability analysis rather than a per-item margin calculation. If you only count raw material cost and ignore packaging or direct labour, your calculated margin will look artificially healthy compared to your real profitability, which can lead you to underprice. A good habit is to periodically review exactly what you are including in your per-unit cost price, and to be consistent about it across products so your margin comparisons between different items remain meaningful.

Can margin ever be negative?

Yes, margin becomes negative whenever your selling price is lower than your cost price, meaning you are selling the item at a loss rather than a profit. This can happen deliberately, for example when you deep-discount slow-moving inventory to clear stock before it expires or goes out of season, accepting a short-term loss to free up cash and shelf space, or it can happen accidentally, when costs rise, a supplier price increase or higher raw material costs, but you fail to adjust your selling price to match. This calculator will show a negative profit figure and a negative margin percentage in a clearly marked red panel whenever your selling price is below your cost price, which is a useful early warning if you did not intend to be selling at a loss. Running your key products through this calculator periodically, especially after any cost change from a supplier, is a simple habit that catches this kind of accidental margin erosion before it accumulates into a meaningful loss across many units sold.

Are my cost and price figures sent to a server?

No, all calculations run entirely within your own browser using JavaScript on the page, and the cost price and selling price you enter are never transmitted to us or to any third party. There is no account, login or saved history involved, which means you can freely check your real product costs and prices, information many business owners consider sensitive, without any concern about it being logged or shared anywhere. The results appear instantly because nothing has to travel over a network connection, and the tool works exactly the same whether your internet connection is fast, slow, or briefly disconnected, since all the maths happens locally on your device. The one trade-off is that the tool does not remember your figures between visits or calculations, so if you want to keep a particular result for your records, note it down or take a screenshot before you change the inputs or close the tab.

All industries →  ·  Pricing  ·  All free tools

Your entire online presence, on one subscription.

All industries and more. Website, free domain, Google Business and SEO autopilot from ₹249/month.