Margin Calculator

Calculate profit margin after customer discounts, unit costs, selling fees, fixed overhead, and sales volume. Compare margin with markup, see contribution per unit, find break-even volume, test discount sensitivity, and solve the list price needed for your target margin using one transparent business scenario.

Calculation and content reviewed by EZ Calculators Editorial Team on .

Enter values

Model one product or service pricing scenario from list price to profit. Keep discount, unit costs, percentage fees, fixed-cost allocation, volume, break-even, and target margin visible as separate assumptions.

01

SellList price, discount, and volume

02

CostVariable, percentage, and fixed costs

03

DecideProfit, break-even, and target price

Price and sales scenario

The list price is reduced by the entered customer discount. Whole units define both revenue and the fixed-cost allocation for this one scenario.
Enter the price before the customer discount below.
$
Reduces the list selling price before percentage-based selling fees.
%
Fixed costs are allocated across this volume for the scenario margin.
units

Complete cost structure

Direct and other variable costs apply per unit. Selling fees apply to the discounted customer price, while fixed costs are spread across the selected volume only for this scenario.
Use the direct unit cost that belongs to the modeled product or service.
Examples can include packaging, fulfillment, direct labor, or per-order shipping when they vary with each unit.
$
Applied to the selling price after the entered customer discount.
%
Use fixed overhead for the same period or campaign represented by the unit volume.
$

Target profit margin

The solver holds volume, cost, fee, and discount assumptions constant, then finds the list price required for the selected profit margin.
Solves the list price needed at the entered volume, fee rate, and discount.
%
Scenario economicsNot accounting, tax, or pricing advice
This model excludes returns, inventory changes, tax classification, financing, income tax, working capital, cash timing, demand response, and any cost not entered. Reconcile material pricing decisions with current records.

What Is a Profit Margin Calculator and Which Margin Does It Show

A profit margin calculator measures how much of sales revenue remains after the costs included in the model. This version begins with a list price, applies a customer discount, subtracts the entered product or service cost, another variable unit cost, percentage-based selling fees, and fixed costs allocated across the selected volume. The headline is therefore a modeled scenario margin, not a filed financial-statement ratio.

The result also separates gross margin before percentage selling fees and fixed costs, contribution margin after variable costs, and profit after the entered fixed costs. Keeping those layers visible prevents a strong product spread from being mistaken for final business profit.

How to Use Margin Calculator

Build one consistent scenario. Use amounts from the same product, service, campaign, store, or accounting period. Enter the list selling price before discount, the direct cost per unit, expected units, other costs that rise with each unit, selling fees charged as a percentage of net sales, and fixed costs for that same volume period.

Set a target margin only after checking what costs are included. Calculate, then read net revenue, contribution per unit, modeled profit, break-even units, required list price, and the discount table together. Change one assumption at a time so the reason for a margin movement remains clear.

  1. Choose a currency and enter direct cost and list selling price per unit.
  2. Enter a whole-number sales volume and other variable cost per unit.
  3. Add the selling-fee percentage and fixed costs for the same scenario period.
  4. Apply the customer discount that will reduce the actual selling price.
  5. Enter the desired margin, calculate, and compare the result with the target-price and break-even outputs.

Profit Margin Formula: Revenue Is the Denominator

Profit margin divides profit by revenue. Markup divides profit by cost. That denominator difference is why the percentages are not interchangeable. This calculator first finds the discounted net selling price, then subtracts variable costs and percentage selling fees to obtain contribution per unit. Fixed costs are subtracted from total contribution to reach modeled profit.

The target-price equation assumes the entered fee is a constant percentage of discounted revenue and allocates fixed cost across the selected unit volume. If the selling-fee rate plus target margin reaches 100%, no finite selling price can satisfy the equation because nothing remains to cover the other costs.

Formula guide
  • Net selling price per unit = list price x (1 - discount rate)
  • Selling fee per unit = net selling price x selling fee rate
  • Contribution per unit = net selling price - product cost - other variable cost - selling fee
  • Modeled profit = contribution per unit x units - fixed costs
  • Modeled profit margin = modeled profit / net revenue x 100
  • Break-even units = fixed costs / contribution per unit, rounded up
  • Required net price for target margin = (unit costs before percentage fee + fixed cost per unit) / (1 - selling fee rate - target margin)
  • Required list price = required net price / (1 - discount rate)
  • Gross markup on product cost = (net selling price - product cost) / product cost x 100
  • Return on modeled cost = modeled profit / total modeled cost x 100

Worked Example: $100 List Price Across 100 Units

Suppose a product lists for $100, costs $60, carries $5 of other variable cost, incurs a 3% selling fee, and sells 100 units with no discount. Revenue is $10,000. The fee is $3 per unit, so contribution is $32 per unit and $3,200 in total. After $500 of fixed costs, modeled profit is $2,700 and margin is 27%.

At this volume, fixed cost contributes $5 to the all-in cost per unit. A 30% target margin requires a net and list price of about $104.48 when there is no discount. The current $100 price is therefore about $4.48 below that modeled target.

Default calculator example before rounding differences
MeasureCalculationResult
Net revenue$100 x 100 units$10,000.00
Contribution per unit$100 - $60 - $5 - $3 fee$32.00
Modeled profit$32 x 100 - $500$2,700.00
Modeled margin$2,700 / $10,00027.00%
30% target list price($60 + $5 + $5 fixed allocation) / 0.67$104.48

Margin vs Markup: The Same Profit Produces Different Percentages

With a $60 cost and a $100 selling price before other costs, gross profit is $40. Margin is $40 divided by the $100 selling price, or 40%. Markup is $40 divided by the $60 cost, or 66.67%. A seller who treats 40% markup as 40% margin will set a lower price than intended.

Markup can still be useful for price construction, while margin is often easier for comparing profit with revenue. Label the ratio whenever sharing it, and keep the cost base consistent across products.

Margin and markup from a $60 cost before added scenario costs
Selling priceGross profitMarginMarkup
$75.00$15.0020.00%25.00%
$100.00$40.0040.00%66.67%
$120.00$60.0050.00%100.00%

Discounts Compress Margin Faster Than They Reduce Price

A discount reduces revenue while many costs remain unchanged. In the default scenario, a 10% discount lowers net price from $100 to $90. The percentage fee falls slightly, but the $60 product cost, $5 other unit cost, and $500 fixed cost do not. Modeled profit falls from $27 to $17.30 per unit and margin falls from 27% to about 19.22%.

Use the sensitivity table as a planning comparison, not evidence that a promotion will increase unit demand. A lower price can help only if additional contribution from higher volume exceeds the contribution lost on each discounted unit and any new campaign cost.

Default scenario sensitivity at 100 units and a 3% selling fee
DiscountNet price per unitProfit per unitModeled margin
0%$100.00$27.0027.00%
5%$95.00$22.1523.32%
10%$90.00$17.3019.22%
20%$80.00$7.609.50%

Selling Fees Belong in the Variable Cost Stack

Marketplace commissions, payment processing, referral fees, and revenue-share charges often move with sales value. Enter their combined effective percentage only when they are genuinely assessed against the discounted selling price. A flat transaction fee should instead be converted to a per-unit variable cost for the modeled order pattern.

Real fee schedules may contain tiers, minimums, cross-border charges, refunds, chargebacks, or tax on fees. Calculate a weighted effective rate from actual statements when a single percentage is only an approximation.

Fixed Costs and Contribution Determine Break-Even Volume

Contribution per unit is the amount left after costs that vary with each sale. It is available to cover fixed costs and then profit. The break-even quantity is fixed costs divided by contribution per unit, rounded up when only whole units can be sold. In the default scenario, $500 divided by $32 equals 15.625, so at least 16 units are required.

If contribution per unit is zero or negative, higher volume cannot recover fixed costs under the entered assumptions. Price, discount, or variable cost must change before a finite unit break-even point exists.

Target-Margin Pricing Must Cover Fees and Allocated Fixed Cost

A target price is not found by simply adding the desired margin percentage to cost. The equation must leave the target share of revenue after the selling-fee share while also covering direct cost, other variable cost, and fixed cost allocated across the expected units. The result changes when volume changes because fixed cost per unit changes.

The calculated list price is also adjusted for the entered discount. If customers receive 10% off, a higher list price is needed to produce the same net price. Review whether the resulting price is commercially realistic; arithmetic cannot establish demand or willingness to pay.

Cost Classification Changes the Answer

Direct materials, resale inventory cost, fulfillment, direct labor, packaging, royalties, and shipping can behave differently across businesses. Classify a cost according to how it changes in the specific scenario, not according to a generic label. The same payroll item may be fixed for one decision and variable for another.

For accounting statements or tax records, reconcile calculator inputs with the organization’s consistent accounting method. IRS Publication 334 explains that gross profit depends on net receipts and cost of goods sold, including inventory-related calculations where applicable.

Negative Margin and Loss Scenarios Need an Operational Response

A negative modeled margin means the entered revenue does not cover the included costs. First verify units, periods, returns, fees, and cost classification. Then isolate whether the shortfall comes from price, discount, unit economics, or fixed overhead rather than assuming one price increase is the only remedy.

A positive gross margin can coexist with a modeled loss when fixed costs are large. A positive contribution per unit means additional units help cover fixed costs, but it does not prove that demand exists or that cash will arrive before bills are due.

Volume Changes Fixed Cost per Unit, Not Unit Contribution

In this single-product model, unit contribution stays unchanged when price and variable costs stay unchanged. Increasing units spreads the entered fixed cost over more units, which can improve the modeled profit margin. Decreasing volume raises fixed cost per unit and can push the same product price below the target margin.

This relationship is reliable only inside the assumed operating range. Capacity limits, overtime, storage, equipment purchases, step costs, and bulk discounts can change both fixed and variable costs at different volumes.

Tax, VAT, Returns, Shipping, and Cash Timing Are Separate Decisions

Use tax-exclusive revenue and costs when measuring a tax-exclusive commercial margin unless the applicable accounting treatment requires otherwise. VAT, GST, and sales tax collected for an authority are not automatically business revenue, while unrecoverable tax may become a cost. Verify the treatment for the jurisdiction and transaction.

The model does not forecast returns, refunds, bad debt, inventory write-downs, financing, income tax, depreciation, working capital, or cash timing. Add expected return and refund effects to the cost or net-revenue assumptions when they are material, then reconcile the planning result with actual records.

Margin Calculator Features

The calculator combines unit economics and a compact cost-volume-profit scenario without hiding the intermediate numbers. It reports several margins because each answers a different management question.

  • List price, discount, net price, revenue, and discount-value breakdown.
  • Product cost, other variable cost, percentage selling fee, and fixed-cost allocation.
  • Gross margin, contribution margin, modeled profit margin, and markup on modeled cost.
  • Break-even units and break-even revenue when contribution is positive.
  • Required net and list prices for the entered target margin.
  • Discount sensitivity table using the same units, costs, and fee assumptions.

Benefits of Using a Detailed Margin Calculator

A layered result makes price decisions easier to audit. Instead of seeing only profit divided by price, users can identify how much margin is consumed by a promotion, selling platform, fulfillment cost, or fixed-cost allocation. The target-price output also turns a percentage goal into a specific testable amount.

Repeating the calculation for different products creates a consistent comparison process. Saving the assumptions beside the result helps another reviewer reproduce the scenario and challenge a cost that may have been omitted.

Common Margin Calculator Use Cases

Retailers can test sale prices, ecommerce sellers can include marketplace and payment fees, service providers can combine direct labor with project overhead, and product teams can compare planned volume with break-even volume. A small business can also use the target-price calculation before publishing a quote or promotion.

For a portfolio of products, run each product separately before combining results. A single blended margin can hide a loss-making item, and a multi-product break-even analysis requires a stable sales mix rather than one unit contribution figure.

Margin Calculation Accuracy, Scope, and Trust Notes

The arithmetic uses the displayed formulas and unrounded internal values, then formats money to cents and percentages to two decimals. Break-even units are rounded upward to a whole unit. The discount table holds units, costs, fees, and fixed costs constant so only discount changes.

Accuracy depends on complete, consistently timed inputs. This is a planning model, not an accounting statement, tax calculation, valuation, or guarantee of demand. Compare the result with source invoices, platform statements, inventory records, payroll classifications, and the accounting ledger before making a material decision.

Official Profit Margin and Break-Even References

FAQ

How do I calculate profit margin from cost and selling price?

Subtract all costs included in the scenario from net sales revenue, divide the resulting profit by net sales revenue, and multiply by 100. This calculator also shows the intermediate contribution and fixed-cost layers.

What is the difference between margin and markup?

Margin divides profit by selling price or revenue, while markup divides profit by cost. A $40 gross profit on a $100 sale and $60 cost is a 40% margin but a 66.67% markup.

How do I calculate a selling price for a target margin?

Divide the relevant cost base by one minus the target margin and any percentage selling-fee rate. This calculator also allocates fixed cost across entered units and adjusts list price for the selected discount.

What does a 30% profit margin mean?

It means 30 cents of each dollar of modeled net revenue remains after the costs included in that margin calculation. It does not identify which costs were excluded, so the margin label and cost scope still matter.

Why does a small discount reduce profit margin so much?

The discount reduces revenue, while unit cost and fixed cost usually do not fall by the same amount. Percentage fees may decline slightly, but the lost selling price comes mostly from the contribution that covered overhead and profit.

Should payment processing and marketplace fees be included?

Yes when they are genuine costs of the modeled sales. Enter percentage-based charges in the selling-fee field and flat per-order charges in other variable cost after converting them to a suitable per-unit amount.

How do fixed costs affect profit margin?

Fixed costs reduce total scenario profit and fixed cost per unit depends on volume. More units spread the same fixed cost more widely, but only if price, variable cost, capacity, and the fixed-cost amount remain unchanged.

Can profit margin be negative?

Yes. A negative margin means the included costs exceed net revenue. Verify the inputs first, then examine price, discounts, variable costs, fees, volume, and fixed overhead to find the source of the loss.

Should VAT, GST, or sales tax be included in margin?

Use the accounting treatment that applies to the business and jurisdiction. Tax collected for an authority is not automatically revenue, while unrecoverable tax may be a cost. Confirm the classification with current official guidance.

Is gross margin the same as net profit margin?

No. Gross margin normally subtracts cost of goods sold from net sales. Net profit margin includes additional operating and non-operating items. This calculator's modeled margin covers only the costs entered and is not a full net-income statement.