vasilenko.info

Margin and markup calculator

/en/calc/margin-markup/ works Calculated in the browser

Margin and markup are not the same thing: they use the same profit but different denominators. Fill in any two of five fields — cost, price, profit, margin, or markup — and the other three are calculated automatically. Expand the additional sections to include VAT, marketplace fees, payment processing, logistics, returns, and tax. The calculator shows net margin alongside gross margin and the minimum price at which the transaction breaks even. The result stays on the right as you scroll through the settings. Below the panel, you’ll find all other figures, a discount table, and three price points side by side. All calculations run in the browser, and no numbers are sent anywhere. The field values are added to the URL so you can share the calculation as a link.

promoTwenty years of notes on websitesHow we did it in 2008 and what still works today.Open

Deal calculation

There is no “calculate” button: fill in any two of the five fields, and the other three are calculated as you type. Settings are on the left and the result is on the right. It stays on screen while you scroll through the settings.

How it works
Deal: any two of five fields

Fill in the two values you know — each field shows whether it was entered by you or calculated. Start typing in a third field, and the oldest entered value is cleared. Margin and markup cannot both be calculated: they are the same number written in two ways, and they need a money value — cost, price, or profit.

The purchase cost plus everything spent specifically on this unit. Do not include rent or salaries here — they do not depend on one item. Use the fixed costs field for those.

What the buyer pays for one unit. Whether the price includes VAT is set in the “VAT” section below.

The difference between the price and the cost. You can enter it and get the price. A negative value is allowed if you are calculating an unprofitable sale.

The share of the price you keep. With a nonzero cost, it is always less than 100%.

The percentage you add to the cost. There is no upper limit: 500% is possible.

Target margin — the button enters it in the field and immediately shows the required price
The unit cost stays the same; the price changes.

Only needed for batch totals. For a single deal, leave it at one.

Rent, salaries, subscriptions — costs that do not depend on the number of units sold. The “units to cover fixed costs” row will appear in the “All calculation figures” section below the panel.

VAT: rate and how to handle prices Collapse VAT

While the rate is zero, this section changes nothing. The main rule is simple: either all figures include VAT or none do — do not mix them. Here you specify how you entered the figures, and the calculator shows both margins.

Zero means you do not pay VAT. To separate or add VAT, use VAT calculator.

Preset rates
5% and 7% are simplified-tax rates that apply after crossing the revenue threshold. 10% is the reduced rate; 20% is the standard rate.
Prices in the fields above are entered
Uncheck this if your supplier does not charge VAT: there is then no input VAT to deduct, and the full VAT on the sale goes to the government. This is where the margin including VAT and the margin excluding VAT diverge.
Deductions from the sale: commission, payment processing, logistics, returns, tax Collapse deductions

While these values are zero, net margin equals gross margin. Fill in what you know — you can leave the rest at zero.

A marketplace, aggregator, or partner program — anything that takes a percentage of the amount paid by the buyer.

The payment service rate, usually 2—3.5%. To break down a payment into parts, use commission calculator.

The fixed part of the commission for one payment, if applicable. For a low-priced product, it has a greater impact than the percentage.

Delivery to the buyer, storage, and return logistics for one unit — your share, not the amount paid by the buyer.

The percentage of purchased units that are returned. The product goes back into storage, while its logistics costs have already been incurred — those costs are deducted.

The buttons below enter a rate, but you can set your own: simplified tax can be lower in some regions.

How the tax is calculated

“On revenue” means the simplified “income” system: tax is charged on the entire amount received, even if the deal is unprofitable. “On profit” means “income minus expenses”: tax is charged on what remains after costs and commissions.

Discount: custom value and minimum margin Collapse discount

These two values control only the “Discount” table below. They do not affect the main calculation, where the price is shown without a discount.

The discount you plan to offer. Its row is highlighted in the table.

The minimum margin below which the deal is not worthwhile for you. The maximum discount that keeps it above this level will appear below the table.

Currency

The currency here only labels the figures. The calculator does not know exchange rates and does not convert anything. Calculate everything in one currency.

Margin — profit as a share of the price

%

Markup — the same profit relative to cost
Selling price
Profit per unit
Net margin
Net profit per unit
Printing shows only the result: fields and buttons are not printed.

All calculation figures

Back to settings

The top panel shows the essentials: margin, money per unit, and the price breakdown bar. Here you will find everything else that was calculated. Rows appear as you expand sections: while VAT, deductions, and fixed costs are all zero, there is nothing to show for them.

Per unit

Cost
Markup factor
Price excluding VAT
VAT payable
Margin excluding VAT — actual
Deductions from the sale
Tax
Minimum price to break even

For the entire batch

Revenue
Profit
Net profit
Units to cover fixed costs

The browser does the calculations: neither cost nor price is sent anywhere. After loading, the page makes no requests, as you can see in the developer tools. Only the figures you entered are added to the address bar, so you can share the calculation by sending a link. The CSV file is also generated on your device.

Discount: how much you can cut

Back to settings

A discount cuts revenue but leaves cost unchanged, so margin falls faster than the price. The last column answers a question people often forget to ask: how many times more units must you sell for the discount not to eat into your profit. Your discount and minimum margin are set in the collapsed “Discount” section in the top panel. Your row in the table is highlighted.

What a discount does to price, margin, and profit
Discount Price Margin Markup Profit per unit Batch profit Sales increase needed

Three prices side by side

Back to settings

Three pricing options in three columns. Until you change them, they are based on your price: one-tenth lower, your price, and one-tenth higher. Enter your own prices, and the columns will stay as you set them.

If you changed the prices manually, this button will reset them to your price
Cost, fees, and batch size are the same for all three — only the price changes
Metric Option 1 Option 2 Option 3

promoCalculate ROI at the same timeCampaign payback based on spend and revenue.Open

How to use it

  1. Fill in any two of the five fields. If you know the cost and price, margin and markup will be calculated. If you know the price and target margin, you will get the cost you need to stay within. If you know the profit and markup, you will get both of them. Each field indicates whether it was entered by you or calculated.

  2. The settings are on the left and the result is on the right, where it stays: no matter how far you scroll through the VAT, deductions, and discount sections, the margin, per-unit amount, and price breakdown bar remain on screen. Below the panel is a navigation row linking to three sections: “All calculation figures,” “Discount,” and “Three prices side by side.” On a narrow screen, the columns stack into one, with the result directly below the settings.

  3. Include everything spent specifically on this unit in the cost: purchase price, packaging, and delivery to the buyer. Do not include rent or salaries—they do not depend on a single unit; there is a separate fixed costs field for them.

  4. Need a price for a target margin? Click the 10%, 20%, 30%, 40%, or 50% chip. The margin will be entered in the field, your cost will stay unchanged, and the price will be recalculated.

  5. If you work with VAT, expand the section and set the rate. There, also specify whether the entered prices include tax and whether the cost includes input VAT. The “All calculation figures” section below the panel will show “VAT payable” and “margin excluding VAT”: the latter is the real margin.

  6. If you sell through a marketplace, expand “Deductions from a sale.” Fees, payment processing, logistics, returns, and tax are calculated for each unit, and net margin will appear next to gross margin in the panel. The “All calculation figures” section will also show “minimum price to break even”: below that price, the transaction is no longer worthwhile.

  7. The discount table answers retail's main question: how much can you discount? The last column shows how many times more units you will have to sell so the discount does not eat into profit. Below the table is the maximum discount that keeps your margin above its floor.

  8. You can export the completed calculation in four ways: as text copied to the clipboard, a link with the fields in the URL, a CSV file, or a printout. The buttons are below the result rather than at the end of the form, so you do not have to scroll through all twelve sections to reach them. When printed, only the result remains: fields and buttons are not sent to paper.

promoBrowser task listNo account required—everything is stored on your device.Open

The formula and what it includes

Margin = (Price − Cost) ÷ Price × 100% Markup = (Price − Cost) ÷ Cost × 100% Net profit = Price excluding VAT − Cost − Deductions − Tax

Markup is always higher than margin because it is divided by a smaller number. Conversion in one direction: margin = markup ÷ (100 + markup) × 100. In the other direction: markup = margin ÷ (100 − margin) × 100. This also explains the margin ceiling: for margin to be 100%, cost must be zero. Margin and markup together do not define a transaction—they are the same number expressed in two ways, so they always need a money figure: cost, price, or profit. Returns are calculated as follows: revenue from a returned unit is zeroed out, the product goes back into inventory, and its logistics cost has already been incurred—that cost is written off. Fees are charged on the amount paid by the buyer, meaning the price including VAT.

Example breakdown: cost 800 ₽, price 1,000 ₽

The input data is the same as the default field values: you can calculate it mentally and confirm that the tool is telling the truth.

  1. Profit per unit: 1,000 − 800 = 200 ₽.

  2. Margin: 200 ÷ 1,000 × 100% = 20%. The denominator is the price.

  3. Markup: 200 ÷ 800 × 100% = 25%. The denominator is the cost.

  4. Markup factor: 1,000 ÷ 800 = 1.25.

  5. For 100 units: revenue is 100,000 ₽ and profit is 20,000 ₽.

  6. With a 10% discount: price is 900 ₽, profit per unit is 100 ₽, and margin is 11.11%. Batch profit is cut in half—from 20,000 to 10,000 ₽. To maintain it, you need to sell twice as many units: 200 instead of 100.

  7. A 15% margin floor holds up to a 5.88% discount: price is 941.18 ₽ and profit is 141.18 ₽. Beyond that, margin falls below the floor.

  8. If you set VAT to 20% and clear the input tax checkbox—that is, you bought without VAT but sell with it—166.67 ₽ of tax comes out of the price, profit falls from 200 to 33.33 ₽, and margin excluding VAT becomes 4%.

The same transaction: margin is 20%, markup is 25%. In both cases, profit is 200 ₽ per unit. Only the denominators differ, and that is where people lose money when they ask for a “20% markup” but mean margin.

Frequently asked questions

promoAll toolsForty-four tools, all running in your browser.Open

Related calculators

4
Calculator

LTV and CAC

Lifetime customer revenue and acquisition cost.

Open

Calculator

Payment system fees

How much reaches your account after fees and what to include in the price.

Open

Calculator

VAT

Applies and calculates tax at any rate.

Open