Profit Margin Calculator – Selling Price, Gross Profit & Markup

Calculate the selling price needed for a target gross margin, or enter cost and selling price to measure the actual margin. See gross profit, equivalent markup and totals for any quantity.

Margin and pricing inputs

Use the same cost definition for every scenario you compare.
%
Optional scale factor for total cost, revenue and gross profit.
Quick presets

Load a margin scenario, then adjust any input.

Margin result

Selling price per unit
—
Gross profit / unit
—
Gross margin
—
Equivalent markup
—
Cost share of price
—
Total revenue
—
Total gross profit
—

—

What does your result mean?

Enter your cost and target margin to interpret the result.

Margin vs markup

—

What affects the result most?

—

What to do with the result

—

Continue your calculation

After checking gross margin, compare the same transaction with markup, contribution margin and break-even volume.

How the profit margin calculator works

This calculator focuses on gross margin at unit level: the percentage of selling price left after the cost basis you enter has been deducted. It is designed for pricing products, service packages, jobs or other repeatable units where you can identify a consistent cost.

Use Selling price from cost + target margin when you know the unit cost and want to find the minimum price that mathematically produces a chosen gross margin. Use Margin from cost + selling price to audit an existing price and see the actual margin, gross profit and equivalent markup.

Core formulas

Gross profit = Selling price − Cost

Gross margin % = Gross profit ÷ Selling price × 100

Selling price for target margin = Cost ÷ (1 − Margin % ÷ 100)

Markup % = Gross profit ÷ Cost × 100

Worked example: price for a 35% gross margin

Assume a product costs $65 per unit and the business wants a 35% gross margin.

  1. Convert 35% to decimal form: 0.35.
  2. Subtract it from 1: 1 − 0.35 = 0.65.
  3. Required selling price: $65 ÷ 0.65 = $100.
  4. Gross profit: $100 − $65 = $35.
  5. Check the margin: $35 ÷ $100 = 35%.

The equivalent markup is different: $35 ÷ $65 ≈ 53.85%. The same $35 gross-profit amount produces two different percentages because margin uses selling price as the denominator and markup uses cost.

Margin and markup are not interchangeable

Confusing margin with markup is one of the easiest ways to underprice an offer. If you simply add 30% to cost, you have created a 30% markup — not a 30% gross margin. A true 30% target margin requires a higher selling price.

Target gross marginEquivalent markup on costPrice multiplier
10%11.11%1.111×
20%25.00%1.250×
30%42.86%1.429×
40%66.67%1.667×
50%100.00%2.000×

These conversions are mathematical relationships, not recommendations. A suitable commercial margin depends on the full cost structure, competitive conditions, customer value, demand, discounts and the business model.

Where to get the cost data

The calculator can only be as useful as the cost number underneath it. Use a definition that matches your pricing question and keep it consistent across scenarios.

Resale products

Start with the relevant purchase or landed unit cost. Depending on your accounting method, directly attributable freight, duties or preparation may belong in the cost basis.

Manufactured items

Use the product-cost definition your business actually tracks, such as direct material and direct labour plus any production costs that belong in COGS under your method.

Services

Estimate the direct delivery cost of one billable hour, visit, project unit or package. Do not confuse the internal cost per hour with the selling rate.

Does your result look realistic?

Use the result as a sanity check, not an automatic price recommendation. A mathematically correct target price can still fail commercially if the cost basis is incomplete or the market will not accept the price.

  • If the required price looks unexpectedly low, check whether freight, labour, packaging, marketplace fees or other direct costs are missing from your cost basis.
  • If the required price looks unexpectedly high, confirm that you entered a margin rather than a markup percentage.
  • If the target margin is very close to 100%, expect the required price to rise sharply because the formula denominator becomes very small.
  • If an existing selling price produces a negative margin, the price is below the entered cost basis.

What affects gross margin most?

For a fixed cost, a higher selling price increases gross profit and gross margin. For a fixed selling price, a higher unit cost reduces both. Discounts work like a price reduction: if unit cost does not fall at the same time, gross margin contracts.

This is why a small price change can matter more than it appears. At a cost of $65 and price of $100, gross margin is 35%. Cutting the selling price to $90 without changing cost reduces gross profit to $25 and margin to about 27.78%.

Use several realistic scenarios before finalizing a price: normal price, planned discount price, expected cost increase and a conservative volume assumption. Quantity changes total gross profit, but it does not repair an inadequate unit margin by itself.

What to do with the result

  1. Verify the cost basis. Make sure the input reflects the direct costs you intend the gross margin to cover.
  2. Compare with the market. A target margin does not guarantee that customers will accept the resulting price.
  3. Test discounts. Recalculate the actual margin at promotional or negotiated prices.
  4. Check expenses beyond gross profit. Overhead, payroll, marketing, payment fees, finance costs and tax can turn a healthy gross margin into weak net profit.
  5. Monitor changes. Recalculate when supplier prices, labour inputs or selling prices change materially.

For business and economics students

Gross margin is a basic pricing and profitability concept. The key is to identify the denominator correctly. Margin uses selling price; markup uses cost. Both start from the same gross-profit amount.

If cost is C, selling price is P and gross profit is G, then G = P − C. Gross margin is G ÷ P, while markup is G ÷ C. When solving for a selling price from a target margin m, rearrange the margin formula to P = C ÷ (1 − m).

Exercise 1

A product costs $60. Find the selling price for a 25% gross margin, the gross profit per unit and equivalent markup.

Exercise 2

An item costs $72 and sells for $100. Calculate gross profit, gross margin and markup. Assume 50 units are sold.

Exercise 3

A service package costs €135 to deliver. Find the selling price needed for a 45% gross margin and the total gross profit on 12 packages.

Gross-margin model, not complete business profit: this calculator compares the selling price with the unit cost you enter. It does not automatically account for overhead, payroll, tax, payment fees, marketing, returns, financing, demand or other operating costs. Use consistent net/gross tax treatment and verify the full cost structure before using the result as a final price.

FAQ – profit margin, selling price, cost and markup

What is gross profit margin?
Gross profit margin is the share of selling price left after subtracting the cost basis used in the calculation. The formula is (selling price − cost) ÷ selling price × 100.
How do I calculate a selling price for a target margin?
Divide unit cost by 1 minus the target margin as a decimal. For a 35% target margin and a cost of 65, selling price is 65 ÷ 0.65 = 100.
How do I calculate margin from cost and selling price?
Subtract cost from selling price, divide the gross profit by selling price, then multiply by 100.
Is margin the same as markup?
No. Gross margin divides gross profit by selling price; markup divides the same gross profit by cost. A 35% margin corresponds to about 53.85% markup.
Why is a 50% margin not a 50% markup?
Because the denominator is different. If cost is 50 and selling price is 100, gross profit is 50. Margin is 50 ÷ 100 = 50%, while markup is 50 ÷ 50 = 100%.
Can gross margin be 100%?
Not when the entered cost is greater than zero. A 100% gross margin would require cost to be zero relative to selling price, so the target-margin mode stops below 100%.
Can margin be negative?
Yes. In reverse mode, if selling price is below the entered cost, gross profit and gross margin are negative. That means the sale does not recover that cost basis.
What cost should I enter?
Use a consistent cost basis that matches the decision you are making. For product gross margin this is often the relevant unit cost or cost of goods sold. For a service it may be the direct delivery cost. Do not silently mix direct cost, overhead and tax.
Does this calculator show net profit margin?
No. It is a unit gross-margin calculator. It does not automatically deduct overhead, payroll, marketing, payment fees, financing, tax or other operating expenses.
Does the calculator include VAT or sales tax?
No. The calculation is tax-neutral. For a clean margin comparison, use figures on a consistent tax basis, such as both cost and selling price excluding recoverable VAT where appropriate for your accounting context.
What does the quantity field change?
Quantity scales unit cost, revenue and gross profit into totals. It does not change the unit margin percentage.
Why does the required price rise sharply near a 100% target margin?
The target-price formula divides cost by 1 minus the margin rate. As the target margin approaches 100%, the denominator approaches zero, so the required selling price grows very quickly.
How do discounts affect gross margin?
A discount reduces selling price while cost may stay unchanged, so gross margin usually falls faster than many sellers expect. Recalculate margin using the discounted selling price before approving a promotion.
Why might my accounting gross margin differ?
Your accounting system may define cost of goods sold, rebates, freight, labour, inventory adjustments and net sales differently. Compare the cost and revenue definitions before expecting identical percentages.