Profit Margin Calculator
Enter the revenue and cost for a sale or a product. The calculator shows the profit, the margin, the markup and the price needed for a target margin.
Profit Margin Calculator
Result
Profit margin: 40.0%
Price for a 50% margin: 1,200.00
What the Profit Margin Calculator does
The Profit Margin Calculator shows how much of each sale is kept as profit, and how much is needed to cover the cost of the item. It gives the gross profit in money, the margin as a share of revenue, and the markup as a share of cost. It also works backwards: enter a target margin and it shows the price needed to reach it.
Margin is one of the first numbers a business should know about a product. A product with a thin margin leaves little room for discounts, returns or rising costs, while a healthy margin gives room to invest and to absorb surprises.
Margin and markup are not the same
Margin is profit divided by revenue, so it describes the share of the selling price that is kept. Markup is profit divided by cost, so it describes how much the cost has been increased to reach the price. The two numbers differ, and mixing them up is one of the most common pricing errors.
For example, if an item costs 600 and sells for 1,000, the gross profit is 400. The margin is 400 divided by 1,000, which is 40 percent. The markup is 400 divided by 600, which is 66.7 percent. A markup of 50 percent on cost gives a margin of only 33.3 percent.
Pricing for a target margin
To find the price for a target margin, divide the cost by one minus the margin, written as a decimal. For a cost of 600 and a target margin of 50 percent, the price is 600 divided by 0.5, which is 1,200. The calculator does this for you, and it updates when you change the cost or the target.
Check the target against the market. A price that gives the margin you want may be higher than customers will pay. In that case, the options are to reduce the cost, change the product or accept a lower margin in exchange for more sales.
Worked example
A shop sells a product for 1,000 that cost it 600. The gross profit is 400, the margin is 40 percent and the markup is 66.7 percent. If the shop wants a 50 percent margin on the same cost, it must sell at 1,200.
If a supplier raises the cost to 650 and the selling price stays at 1,000, the margin falls to 35 percent. Small increases in cost have a large effect on margin, which is why regular checks on costs matter.
Using margin in decisions
Compare margins across products and channels, not just in total. A product with a high margin but few sales may matter less than a product with a modest margin and steady demand. Consider the margin after any fees, commissions and delivery costs, because those reduce what you keep.
Review margins when costs change, when you run a promotion and when you add a new product. A promotion that reduces the price can quickly turn a profitable product into a loss-making one.
Losses and negative margins
If the cost is higher than the revenue, the margin is negative, and the sale loses money. The calculator flags this clearly. A negative margin may be acceptable for a short time as a deliberate loss leader, but it should be a conscious decision with a clear reason and an end date.
Limitations
The calculator uses the figures you enter. Gross profit does not include overheads such as rent, salaries and marketing, so a healthy gross margin does not guarantee a profitable business. Use the margin as one part of a wider financial review, and check your figures with an accountant before making major decisions.
Gross and net margin
Gross margin looks only at the cost of the item. Net margin also takes away overheads, and shows what the business keeps from each sale after all its costs. Both are useful, but they answer different questions, so label the one you report.
Pricing across a product range
A product range often mixes high- and low-margin items. Look at the average margin across the range, weighted by sales volume, and watch which products bring in the most gross profit in total. A low-margin product can still matter if it brings customers who buy higher-margin products too.
Discounts and their effect
A discount reduces the margin by more than its percentage suggests. A 10 percent discount on a product with a 40 percent margin cuts the margin to about 33 percent, because the same cost is now set against a lower price. Calculate the margin at the discounted price before you run a promotion.
Checking margins regularly
Costs drift. Supplier prices, shipping rates and payment fees change, often without much notice. Recalculate margins at least every few months, and after any change in supplier or fee structure, so that pricing keeps pace with costs.
Presenting margin to customers
Customers rarely see margin, but they notice value. A price set on margin alone can miss the reasons people buy. Use margin to set a floor, then decide the price by thinking about what the product is worth to the buyer.
Gross and net margin
Gross margin looks only at the cost of the item. Net margin also takes away overheads, and shows what the business keeps from each sale after all its costs. Both are useful, but they answer different questions, so label the one you report.
Pricing across a product range
A product range often mixes high- and low-margin items. Look at the average margin across the range, weighted by sales volume, and watch which products bring in the most gross profit in total. A low-margin product can still matter if it brings customers who buy higher-margin products too.
Discounts and their effect
A discount reduces the margin by more than its percentage suggests. A 10 percent discount on a product with a 40 percent margin cuts the margin to about 33 percent, because the same cost is now set against a lower price. Calculate the margin at the discounted price before you run a promotion.
Checking margins regularly
Costs drift. Supplier prices, shipping rates and payment fees change, often without much notice. Recalculate margins at least every few months, and after any change in supplier or fee structure, so that pricing keeps pace with costs.
Presenting margin to customers
Customers rarely see margin, but they notice value. A price set on margin alone can miss the reasons people buy. Use margin to set a floor, then decide the price by thinking about what the product is worth to the buyer.
Privacy
The figures you enter stay in your browser. The calculator does not store your prices or costs, or send them to a server.
Frequently Asked Questions
What is a good profit margin?
It depends on the sector. Compare your margin with your own history and with businesses that sell similar products.
Is markup the same as margin?
No. Markup is profit as a share of cost. Margin is profit as a share of selling price.
Should I include overheads?
Gross margin uses the cost of the item only. Overheads are subtracted later, when you assess the whole business.
Why is my margin lower after fees?
Payment, platform and shipping fees come out of the selling price. Include them in the cost to see the true margin.
What if my margin is negative?
The sale loses money. Review the price and cost, and decide whether there is a clear reason to accept the loss.
Related Tools
By the ToolHuby editorial team. Last updated November 16, 2026.