Markup & Margin Calculator - Retail Pricing

Price & Cost Details

Convert markup and margin, derive cost or price by mode, and include e-commerce platform fees to see net profit and net margin after fees.

Select a calculation mode

Enter known values

Include e-commerce fees (optional)

View your results

Margin and markup here are computed from the figures you entered. They do not show whether the price is competitive or what customers will pay.

Formulas and sources

Each formula this calculator uses, where it comes from, and what it leaves out. "How it works" shows the same formula with your own numbers.

Markup and margin from cost and price

Cost+Markup, Price+Margin and Cost+Price modes

Markup % = (P − C) ÷ C × 100 Margin % = (P − C) ÷ P × 100
Markup %
the profit as a share of the cost
Margin %
the profit as a share of the selling price (the gross margin)
P
the selling price
C
the cost

Cost+Markup finds the price as P = C × (1 + Markup % ÷ 100), and Price+Margin finds the cost as C = P × (1 − Margin % ÷ 100). A price below the cost gives a negative markup and margin.

Source: Uses OpenStax's markup percentage and gross margin formulas (Gomez Albrecht and colleagues, 2023) [1], applied to one product; its purchase price is the cost here.

Markup to margin

Markup → Margin mode

Margin % = Markup % ÷ (1 + Markup % ÷ 100)
Margin %
the margin that markup gives
Markup %
the markup you enter

The cost and price shown beside it are an illustration on a cost of 100. A markup of -100% or less has no margin.

Source: Standard formula; no single publisher. It follows from the OpenStax definitions [1].

Margin to markup

Margin → Markup mode

Markup % = Margin % ÷ (1 − Margin % ÷ 100)
Markup %
the markup that margin needs
Margin %
the margin you enter

A margin of 100% or more has no markup: no cost is low enough.

Source: Standard formula; no single publisher. It follows from the same two OpenStax definitions [1].

Fees, net profit and net margin

Cost+Markup, Price+Margin and Cost+Price modes, with E-commerce Fee Deduction on

Fees = P × Fee % ÷ 100 + Fixed Fee Net Profit = (P − C) − Fees Net Margin % = Net Profit ÷ P × 100
Fees
the selling fees on one sale
P
the selling price
Fee %
the fee, as a share of the selling price
Fixed Fee
any flat fee per order
C
the cost

You enter both fees; the tool knows no marketplace's or payment processor's rates. In Conversion, the fees are worked on the example sale the conversion is shown on, not on a price of yours.

Source: CalcTrail's own model of selling fees; no publisher. For comparison, reported net margins of US public companies: NYU Stern, January 2026 [2].

Sources

  1. Gomez Albrecht M, Green M, Hoffman L. Principles of Marketing, section 18.3 "Retailing Strategy Decisions", "Markup" and "Gross Margin". OpenStax, Rice University, 2023 (web edition read October 5, 2026).
  2. Damodaran A. Margins by Sector (US), columns "Gross Margin" and "Net Margin". NYU Stern School of Business, Data as of January 2026; the page is replaced each January.

What this calculator does not cover

  • It works on one product's cost and price. A business's reported gross margin uses its total net sales and cost of goods sold, as OpenStax's worked example does.
  • It does not count volume discounts, a blend of margins across products, or fixed overhead. The Break-Even Calculator adds fixed costs and sales volume.

Sources checked on .

Help

Quick Start Guide

  1. Select a calculation mode: Choose Simple or Conversion, then a calculation mode: Cost+Markup, Price+Margin, Cost+Price, Markup → Margin or Margin → Markup.
  2. Enter known values: Fill in cost, price, markup, or margin based on your selected mode.
  3. Include e-commerce fees (optional): Turn on fee deduction to see net profit and net margin after marketplace and payment-processing fees.
  4. View your results: See markup and margin percentages side-by-side, along with profit per unit.
  5. Convert between markup and margin: Choose Conversion, then Markup → Margin or Margin → Markup, and enter the figure you know. The Help panel's Table tab lists common pairs.
  6. Export or copy your results: Copy a formatted summary, or download JSON, CSV or PDF.

Frequently Asked Questions

Markup versus margin comes down to the base: markup is the percentage added to cost to reach the selling price (based on cost), and margin is the percentage of the selling price that is profit (based on revenue). A 50% markup equals a 33.3% margin, so the two are not interchangeable. To figure out the markup percentage on a product you already price, subtract the cost from the price and divide by the cost; Cost+Price mode does it and shows the margin too.

Related Calculators

Last updated