Skip to content
Finance

Profit Margin Calculator

Gross margin expresses gross profit as a percentage of selling revenue, while markup expresses the same profit as a percentage of cost. Because the denominators differ, margin and markup are not interchangeable: a product costing 60 and selling for 100 has a 40% margin but a 66.67% markup.

By Updated Runs in your browser — nothing is uploaded

Input · price and cost

Use any currency; keep both money inputs in the same one.

Gross margin

40.00%

40.00 profit per unit

Markup on cost
66.67%
Total revenue
100.00
Total cost
60.00
Total gross profit
40.00
Maximum discount before gross loss
40.00%
On this page
  1. Margin and markup answer different questions
  2. Using the calculator
  3. Gross profit is not net profit
  4. Converting target margin to price
  5. Converting markup to margin
  6. Discounts and break-even
  7. Quantity and total profit
  8. Worked examples
  9. Tax, shipping, and platform fees
  10. Returns, waste, and unsold inventory
  11. Limits of the result

Margin and markup answer different questions

Profit margin and markup both start with the same amount: selling price minus cost. They differ in what they compare that profit with. Margin asks what share of sales revenue remains after direct cost. Markup asks how much was added on top of cost to set the selling price.

gross profit = selling price − cost
gross margin = gross profit ÷ selling price × 100
markup = gross profit ÷ cost × 100

If an item costs 60 and sells for 100, gross profit is 40. Margin is 40 divided by 100, or 40%. Markup is 40 divided by 60, or 66.67%. Both are correct, but they describe different bases. Confusing them is one of the most common pricing errors.

Using the calculator

Enter the direct cost per unit, selling price per unit, and quantity. Both money inputs must use the same currency, but that currency can be dollars, euros, pounds, rupees, yen, or any other unit. Percentages are unchanged by currency.

The result shows per-unit profit, gross margin, markup, total revenue, total cost, and total gross profit. Quantity can represent physical items, billable hours, subscriptions, tickets, or any repeated unit, as long as cost and price refer to that same unit.

Do not mix tax-inclusive revenue with tax-exclusive cost unless that is deliberately how the business reports. Keep the accounting basis, time period, and currency consistent.

Gross profit is not net profit

Gross profit deducts the direct cost of what was sold. For a retailer this is usually the purchase cost of inventory plus directly attributable acquisition costs. For a manufacturer it can include raw materials and production labour. For a service business, the classification of delivery labour varies with its accounting policy.

Net profit goes further. It deducts operating expenses, interest, taxes, depreciation, and other costs from revenue. A product can carry a positive gross margin while the overall business loses money because rent, marketing, support, administration, payment fees, returns, and financing consume more than the gross profit.

This calculator therefore describes gross unit economics. It does not certify that a business, campaign, or product line is profitable after every expense.

Converting target margin to price

When the cost and desired margin are known, rearrange the margin formula:

selling price = cost ÷ (1 − target margin)

Write the target percentage as a decimal. A 40% target is 0.40. With cost of 60, the price is 60 divided by 0.60, which equals 100.

Adding 40% to cost is not the same operation. It produces a price of 84, profit of 24, and margin of only 28.57%. The added 40% is markup because it was calculated on cost.

As target margin approaches 100%, the required price grows rapidly. A 100% margin is impossible when cost is above zero because some revenue must cover that cost.

Converting markup to margin

The two percentages can be converted without knowing the currency amounts:

margin = markup ÷ (1 + markup)
markup = margin ÷ (1 − margin)

Use decimals in these equations. A 100% markup is 1.00, so margin is 1 ÷ 2 = 50%. A 25% margin is 0.25, so required markup is 0.25 ÷ 0.75 = 33.33%.

The gap grows at higher percentages. That is why a team quoting “we need 50%” must say whether it means margin or markup before anyone changes a price list.

Discounts and break-even

The current gross margin is also the maximum percentage discount from the current selling price before gross profit reaches zero, assuming unit cost stays unchanged.

An item priced at 100 with cost of 60 can be discounted by 40% to a price of 60. Any deeper discount produces a gross loss. This relationship works because both margin and discount are measured against the original selling price.

However, break-even at the unit level does not cover overhead, selling fees, or transaction costs. A practical minimum price often needs to be higher than direct cost. If a marketplace takes a percentage fee, calculate that fee on the discounted selling price and include it in the economics.

Quantity and total profit

Total gross profit is per-unit gross profit multiplied by quantity:

total gross profit = (price per unit − cost per unit) × quantity

This linear calculation assumes every unit sells at the same price and carries the same direct cost. Real operations may have volume discounts, tiered fees, spoilage, returns, or capacity costs that change at different quantities.

Revenue growth does not guarantee profit growth. Selling more units at a negative per-unit profit increases the total loss. Selling more at a positive gross profit can still require extra staff, warehouse space, or advertising that changes net profitability.

Worked examples

A shop buys an item for 24 and sells it for 40. Gross profit is 16. Margin is 16 ÷ 40 = 40%. Markup is 16 ÷ 24 = 66.67%. Selling 250 units produces revenue of 10,000, direct cost of 6,000, and gross profit of 4,000.

A consultant bills 150 per hour and treats 45 of delivery labour and software as direct hourly cost. Gross profit is 105 per billed hour, gross margin is 70%, and markup is 233.33%. This does not account for unpaid sales time, leave, administration, or tax; an effective hourly-rate calculator is better for that wider question.

A seller pays 80 for a product and wants a 20% margin. Required price is 80 ÷ 0.80 = 100. Adding 20% to cost would price it at 96, creating a margin of only 16.67%.

Tax, shipping, and platform fees

Whether sales tax or value-added tax belongs in revenue depends on the reporting question. Tax collected on behalf of a government is usually excluded from business revenue, so margin analysis commonly uses tax-exclusive price and tax-exclusive cost. A customer-facing retail comparison may use tax-inclusive amounts instead. Consistency is essential.

Shipping can be revenue, cost, or both. If customers pay a delivery fee and the business pays a carrier, include both sides when measuring the order’s economics. Free shipping is still a cost even though the customer sees no separate charge.

Marketplace commissions and payment-processing fees are often variable with revenue. A simple gross-margin figure that omits them can overstate contribution. For decisions about advertising or channel profitability, subtract every cost that changes with the sale.

Returns, waste, and unsold inventory

The calculator assumes units entered are sold and retained. Returns reverse revenue and may add handling, shipping, or damage costs. Perishable goods create waste; fashion and seasonal stock may require clearance discounts. Those effects raise the effective cost of each successful sale.

One useful approach is to spread expected loss across sellable units. If 100 units cost 10 each but only 90 are expected to sell, the effective inventory cost is 1,000 divided by 90, or 11.11 per sold unit, before other expenses.

Historical averages can help, but unusual launch periods or supply disruptions can make them misleading. Separate stable baseline economics from temporary events.

Limits of the result

The output is exact arithmetic for the inputs, not a forecast. It assumes cost, price, and quantity are known and comparable. It does not model demand changing when price changes, currency conversion, inflation, inventory timing, fixed expenses, financing, or tax liability.

Accounting definitions can also vary by industry and reporting framework. A cost classified as direct by one company may be operating expense at another. Compare margins only when businesses use similar definitions and periods.

Use the result to check a price, explain the margin-markup distinction, or build a first unit-economics view. Use full financial statements and professional accounting advice for reporting, valuation, lending, or tax decisions.

Common questions

Frequently asked questions

What is the difference between margin and markup?

Both begin with selling price minus cost, but they divide by different amounts. Margin divides profit by selling price; markup divides profit by cost. A cost of 60 and selling price of 100 produces 40% margin and 66.67% markup, so substituting one for the other causes pricing errors.

How do I calculate gross profit margin?

Subtract cost of goods sold from revenue, divide the result by revenue, and multiply by 100. If revenue is 100 and direct cost is 60, gross profit is 40 and gross margin is 40%. Use consistent periods and include comparable direct costs.

Does gross profit include overhead and tax?

Usually not. Gross profit deducts the direct cost of producing or acquiring what was sold. Rent, administration, marketing, interest, depreciation, and income tax generally appear below gross profit. Classification can vary by business and accounting framework, so use the figures from the same reporting basis.

Can profit margin be negative?

Yes. When direct cost exceeds selling revenue, gross profit and gross margin are negative. This indicates each unit loses money before overhead and other expenses. A temporary negative margin may be intentional for clearance or customer acquisition, but it is not sustainable without profit elsewhere.

How do I convert a desired margin into a selling price?

Divide cost by one minus the target margin written as a decimal. For a cost of 60 and a target margin of 40%, price is 60 ÷ 0.60 = 100. Do not simply add 40% to cost; that creates 40% markup and only a 28.57% margin.

Why is a 100% markup only a 50% margin?

A 100% markup doubles cost. If cost is 50, price becomes 100 and profit is 50. That profit is 100% of cost but only 50% of selling revenue. Margin cannot reach 100% unless recorded cost is zero, while markup has no fixed upper limit.

References

Sources and verification

The formulas and reference ranges on this page come from the following publications. Where a source has been revised, we cite the current edition and update the page when the underlying method changes.

  1. 1Investor Bulletin: How to Read a 10-K/10-QU.S. Securities and Exchange Commission
  2. 2Financial PerformanceU.S. Small Business Administration
This page cites 2 references. See how formulas, examples, updates, and corrections are handled in our editorial policy, or report a possible error.

Keep going

After using the Profit Margin Calculator, these are the closest tools for checking a related number, comparing a result, or continuing the same calculation.