Profit Margin and Markup Calculator

Calculate profit per unit, gross margin, and markup from cost and selling price. Understand the difference between margin on sales and markup on cost.

Loading tool...

Processing happens locally in your browser. Your input is not uploaded to a processing server.

Use the right percentage when setting a price

Profit margin and markup describe the same difference between a selling price and a cost, but they divide that difference by different amounts. Confusing the two can lead to underpricing, incorrect quotations, or a mistaken view of profitability. A seller who adds twenty-five percent to cost has not necessarily achieved a twenty-five percent margin on the final selling price.

This calculator takes a positive total cost per unit and a positive selling price per unit. It shows the resulting profit amount, the margin as a percentage of sales, and the markup as a percentage of cost. It is useful for a product quote, a small pricing comparison, or checking a spreadsheet formula. The result depends entirely on what you include in cost, so define that figure carefully before treating the output as a business-wide measure of profit.

Understand the difference with a small example

If an item costs 80 and sells for 100, the difference is 20. Dividing that profit by the selling price gives a margin of twenty percent. Dividing the same profit by the cost gives a markup of twenty-five percent. Both percentages are correct, but they answer different questions. Margin asks how much of the sale remains after the included cost; markup asks how large the increase is compared with that cost.

This distinction matters when a customer negotiates a discount. A ten percent reduction in the selling price is not simply a ten percent reduction in the profit amount. With a fixed cost, a relatively small price change can consume a large share of the profit. Recalculate the actual cost and price after a proposed discount instead of subtracting the discount percentage directly from a previously quoted markup. Keep currency units consistent even though the percentage formulas work with any currency.

Decide which costs belong in the calculation

A purchase price alone may not represent the full cost of selling an item. Shipping, packaging, marketplace charges, payment-processing fees, returns, and direct labor can materially change what remains from the sale. Some costs vary with selling price, and others apply per order rather than per unit. Allocate them consistently if your purpose is a unit-level decision rather than a quick comparison of purchase and resale prices.

Gross margin is not the same as net business profit. Rent, salaries, marketing, financing, and other overheads may still need to be paid from the gross profit. Taxes also require consistent treatment: comparing a tax-inclusive selling price with a tax-exclusive cost can produce a misleading result. Decide whether the figures should include or exclude recoverable tax and apply that convention on both sides. The calculator cannot infer your accounting method from two numbers or determine whether a particular cost has already been included elsewhere.

Use the result to examine real pricing choices

A useful pricing review compares several realistic scenarios rather than searching for a universally correct margin. A bulk order may lower unit costs but require a discount, a faster delivery promise, or more working capital. A premium product may support a higher price while also producing higher service and return costs. Evaluate the resulting profit amount alongside the percentage and the expected sales volume.

Selling below cost produces a negative profit and negative percentages in this tool. That can be intentional for clearance stock, but it should be visible rather than hidden by a formula that rejects every loss. Zero cost or zero selling price is not accepted because one of the percentage denominators would become undefined. If your scenario includes free samples or bundled giveaways, evaluate it at the order or campaign level instead. Keep the assumptions with the result so another person can distinguish a quick product markup from a complete profitability analysis.

Use estimates as a starting point

Write down the assumptions beside any calculation you share. A useful estimate includes the amount, the rate, the time period, and the treatment of interest or costs. Without those details, two people can obtain different answers while both believe they used the same figures. Retain the unrounded inputs during comparison and round only the displayed result where possible.

These calculations run in your browser and do not require a connection to a bank account. Entering an amount does not create an investment, deposit, loan, or payment instruction. The result is not a quote from a financial institution and does not establish eligibility for any product. Fees, taxes, inflation, changing rates, and personal circumstances can materially affect the real outcome.

For a decision involving substantial money, compare the estimate with the provider's published terms and request clarification where the methods differ. Financial institutions may apply day-count rules, payout adjustments, minimum balances, or rounding conventions that a general calculator does not reproduce. Business owners should also check which costs and taxes belong in the calculation with their accountant. Keep an original copy of your figures and treat downloaded results as planning notes, not certified statements or personalized financial advice.

A sensible comparison changes one assumption at a time. Record a conservative case alongside a more optimistic one, then ask whether the decision still makes sense under both. Avoid selecting a rate solely because it produces the desired final number. If the real contract includes special conditions, compare those conditions directly rather than trying to hide them inside an adjusted input whose meaning will be unclear to the next reviewer.

Guide by . Report an issue or suggest a correction.

Frequently asked questions

Are margin and markup the same percentage?

No. Margin divides profit by selling price, while markup divides profit by cost. With a cost of 80 and a selling price of 100, the profit is 20, the margin is 20 percent, and the markup is 25 percent.

Does the result represent net profit?

Only if the cost input genuinely includes every relevant cost for the decision, which a simple unit calculation usually does not. Overheads, taxes, financing, and other expenses can remain. Use a complete accounting model for business-wide net profitability.

Can the calculator show a loss?

Yes. A positive selling price below a positive cost produces negative profit, margin, and markup. The tool does not hide that outcome. Zero denominators are rejected because the corresponding percentage would not have a meaningful finite value.

Related tools

Reference and further reading

Investopedia's explanation of gross profit margin provides background on the relevant format, technology, or requirements. External services have their own policies and may change independently of this page.