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.
- Convert 35% to decimal form: 0.35.
- Subtract it from 1: 1 − 0.35 = 0.65.
- Required selling price: $65 ÷ 0.65 = $100.
- Gross profit: $100 − $65 = $35.
- 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 margin | Equivalent markup on cost | Price 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
- Verify the cost basis. Make sure the input reflects the direct costs you intend the gross margin to cover.
- Compare with the market. A target margin does not guarantee that customers will accept the resulting price.
- Test discounts. Recalculate the actual margin at promotional or negotiated prices.
- Check expenses beyond gross profit. Overhead, payroll, marketing, payment fees, finance costs and tax can turn a healthy gross margin into weak net profit.
- 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.