Markup Calculator

Enter a positive cost and either a selling price, markup percentage or target gross margin. See the corresponding selling price, gross profit or loss, markup and margin together. The calculator makes the denominators explicit so a percentage of cost is not confused with a percentage of revenue.

Method reviewed by the NumUtility editorial team · Updated October 23, 2026

Compare markup and gross margin

Labels amounts; does not convert exchange rates.
Selling priceUSD 100.00Gross profit or lossUSD 20.00Markup (profit / cost)25.00%Gross margin (profit / selling price)20.00%

Cost entered: USD 80.00. Gross profit excludes costs not included in this input; it is not net profit.

Cost must be positive. A zero selling price has undefined margin. Negative rates can illustrate selling below cost. Target margin must be below 100%. Switching mode resets its price / rate field.

How to use this markup calculator

Choose which pricing value you know. Cost-and-markup mode adds a percentage of cost. Cost-and-margin mode solves for the price needed to give that margin under the entered cost assumption. Cost-and-price mode compares two known amounts. Use one currency consistently and include only costs intended for this gross-profit comparison. Switching modes resets the price or percentage field to an example; check your new inputs rather than carrying an old percentage into a different meaning.

How the calculation works

Markup and gross margin can describe the same sale while producing different percentages. Gross profit is selling price minus the entered cost. Markup divides that profit by cost; margin divides it by selling price. Neither denominator can be swapped without changing the question. Displaying all three quantities together makes the relationship checkable and helps prevent the common error of using a desired margin as if it were a cost-based markup.

For a hypothetical cost of 80 and selling price of 100, gross profit is 20. The markup is 20/80 = 25%, while margin is 20/100 = 20%. Nothing inconsistent has happened: the same 20 is compared with two different bases. The tool labels those bases in the results. A percentage alone is incomplete pricing information unless its definition and the amounts from which it was computed are known.

To find a price from markup, multiply cost by one plus the markup fraction. At a cost of 60 and markup of 50%, the calculated price is 90. Profit is 30 and the corresponding margin is about 33.33%. Adding 50% to cost does not produce a 50% margin. This is a mathematical comparison, not a recommendation that a particular business should adopt that markup or that customers will pay the result.

To find a price from target margin, divide cost by one minus the margin fraction. A cost of 60 with a 25% margin gives 60/0.75 = 80, profit of 20 and markup of about 33.33%. The price rises sharply as target margin approaches 100%. The supported margin range stops at 99.99%, and exactly 100% is not attainable at a finite selling price while positive cost remains. The tool does not hide that singularity.

Loss-making scenarios are supported deliberately. Selling an item that costs 80 for 60 produces a loss of 20, markup of −25% and margin of about −33.33%. A zero selling price produces a −100% markup but an undefined margin because revenue is the zero denominator. Do not report that undefined ratio as zero or assume a negative gross result represents a tax loss. It is only the difference between the entered selling price and cost.

The cost boundary is supplied by the user. A direct product cost may omit freight, payment processing, packaging, wages, rent and other operating expenses. Consequently, the displayed gross profit is not automatically net profit or money available for withdrawal. If you change what is included in cost, you change the interpretation of the result. Keep the cost definition with the calculation so comparisons between products or periods use a consistent boundary.

Selling price should use the same tax basis as the cost comparison. This calculator does not separate included VAT, calculate sales tax or determine the correct accounting treatment for a jurisdiction. A price copied from a tax-inclusive advertisement may not be comparable with a tax-exclusive cost ledger. Resolve that basis before entering values. The currency selector is only a label and does not apply exchange rates, national accounting rules or an assumed tax percentage.

Formulas

Gross result and ratios

profit = price − cost; markup % = profit / cost × 100; margin % = profit / price × 100

Price from markup

price = cost × (1 + markup / 100)

Price from target margin

price = cost / (1 − margin / 100)

Worked examples

Compare two 25% labels

For a 100 cost, 25% markup gives a 125 price and 20% margin. A target margin of 25% instead gives about 133.33. The labels do not name interchangeable rates, even though each starts with the number 25.

A discounted selling price

An 80 cost and 100 price start with 20 profit. Reducing the selling price to 90 leaves profit of 10, markup of 12.5% and margin of about 11.11%. Halving gross profit is not the same as a 10% fall in selling price.

Common uses

Translate a pricing brief

Compare a requested gross margin with the cost-based markup that would correspond to it. Keep the cost definition and tax basis consistent, rather than transferring an unexplained percentage from another product's worksheet.

Review selling below cost

Inspect the effect of a sale price on gross profit and both ratios. Losses remain visible, and a zero-revenue margin is marked undefined rather than converted into a reassuring zero percentage.

Accuracy and limitations

The tool requires a positive cost and finite supported quantities. Intermediate results are not rounded to cents before ratios are calculated.

This is a gross pricing model. It does not verify cost allocation, choose an optimal price or calculate net profit, tax or commercial feasibility.

Sources and methodology

These references support the formulas and financial concepts explained on this page. Product-specific rates, fees, and contract conventions still need to be checked with the provider.

Frequently asked questions

Is markup the same as margin?

No. Markup divides gross profit by cost; margin divides it by selling price.

Can the calculator show a loss?

Yes. Selling below the entered cost produces negative profit and normally negative ratios. A zero selling price leaves margin undefined.

Why must cost be positive?

Markup uses cost as its denominator. Zero cost and negative cost need a different interpretation outside this tool's stated model.

Is gross profit the same as net income?

No. Any expense omitted from your entered cost remains outside the result. Tax and broader accounting treatment are not modeled.

Does target margin select a good business price?

No. It solves an equation under your cost assumption. Demand, competition, overhead and commercial feasibility need separate assessment.

Related calculators

Related guides