Margin and markup calculator

Find the right selling price for a target margin — for one product or your whole list from a CSV.

Runs in your browser — your data never leaves your device. Free, no sign-up.

Single product

%
%
%

Type in either box — the other one updates.

Bulk selling-price table

A header row is optional. A line with only a number is read as a cost. Columns named category and unit are kept for the RushFlow import.

%

How to use it

  1. Pick what you know

    Have a cost and a target margin? Get the selling price. Have a cost and a price? See the margin and markup. Or convert a markup into a margin and back.

  2. Price a whole list

    Paste your products as name, code, cost — one per line — or upload a CSV. Set one target margin or markup and a rounding rule such as “end in .99”.

  3. Download and import

    Check the table, then download it as CSV or as a RushFlow import file. In RushFlow, upload it under Products → Import Products.

Worked example

A grocery shop buys mustard oil at 96 a bottle and wants a 30% margin.

StepWorkingResult
Price for 30% margin96 ÷ (1 − 0.30) = 96 ÷ 0.70137.14
Rounded up to next 5137.14 → 140140
Real margin after rounding(140 − 96) ÷ 14031.4%
Same price as a markup(140 − 96) ÷ 9645.8%

Adding 30% to the cost instead (96 × 1.3 = 124.80) would give only a 23.1% margin — that is the markup-versus-margin trap. Press Load example in the bulk table to price six products the same way.

Questions people ask

What is the difference between margin and markup?
Both compare profit with something else. Margin is profit as a share of the selling price; markup is profit as a share of the cost. An item that costs 60 and sells for 100 makes 40 profit: that is a 40% margin (40 ÷ 100) but a 66.7% markup (40 ÷ 60). Margin can never reach 100%; markup can be any size.
How do I work out the selling price for a target margin?
Divide the cost by (1 − margin). For a 40% margin on an item that costs 60: 60 ÷ 0.60 = 100. A common mistake is to add 40% to the cost (60 × 1.4 = 84), which gives only a 28.6% margin.
How do I convert markup to margin?
Margin = markup ÷ (1 + markup). A 50% markup is a 33.3% margin (0.5 ÷ 1.5). The other way round, markup = margin ÷ (1 − margin), so a 25% margin needs a 33.3% markup.
Does rounding to .99 or to the nearest 5 change my margin?
Yes, slightly. “End in .99”, “whole number” and the “up to” options always round up, so your margin never falls below the target. “Nearest 5” can round down, so the table shows the real margin of every rounded price — check it before you print labels.
Should I use prices with or without VAT?
Work out margins on prices without VAT (or sales tax), because the tax is not your money. Add the VAT on top afterwards to get the shelf price.
How do I get these prices into RushFlow?
Click “RushFlow import file (.xlsx)”. In RushFlow open Products → Import Products → Single Products and upload it. Products come in with category “General” and unit “Piece” unless your list had those columns; rows without a code get one made up (P0001, P0002 …), so change them to your real barcodes if you have them.

Do this automatically for every sale

RushFlow shows the real margin on every product and every sale — cost, price and profit in one place, from the till to the accounts.

The bulk table downloads as a RushFlow import file — upload it under Products → Import Products and your new prices are in.

Get Shop Owner Tips by email

Occasional, practical guides for running a shop — stock, pricing, tax and staff. Optional: the tool above works without it.

Only the email address you type in this box is sent to us — never what you entered in the tool. See our privacy policy.

Related guides