- Markup = (price − cost) ÷ cost × 100%. Margin = (price − cost) ÷ price × 100%. Same numerator, different denominator.
- Markup is always higher than margin: a 25% markup = 20% margin, 50% = 33.3%, 100% = 50%.
- Conversion: margin = markup ÷ (100 + markup); markup = margin ÷ (100 − margin). Price for a target margin = cost ÷ (1 − margin).
- Fees, taxes and refused parcels are charged on the price, so a 40% gross margin leaves a small Ukrainian store 17–31%, depending on the payment method and sales channel.
- A discount comes off the price while your cost stays the same: at a 30% margin, a 30% discount takes your profit to zero.
Margin vs markup is not just a wording question: they are two ways to measure the same profit on a product. Mixing them up costs money. An owner says “we make 30%”, meaning markup, then runs a 30% off sale and sells at cost. Or plans ad spend around a 40% margin when the store actually has a 40% markup, which is only a 28.6% margin.
All examples are for a store in Ukraine, so amounts are in Ukrainian hryvnias (₴, UAH), and fees and taxes are Ukrainian rates as of November 2026. The formulas and the markup to margin chart work the same in any currency.
What is margin?
Margin is the difference between the selling price and the cost of the product. You can express it in money or as a percentage of the price. If you buy a sweater for 600 ₴ and sell it for 1,000 ₴, your margin is 400 ₴, or 40%. In other words, out of every hryvnia of revenue, 40 kopiyky (cents) are left for ads, salaries, taxes and profit.
Several similar terms live next to margin. Here is how to tell them apart:
- Margin in money (gross profit per unit): price minus cost, 1,000 − 600 = 400 ₴.
- Margin percentage (profit margin ratio): margin as a share of the price, 400 ÷ 1,000 = 40%. In everyday speech people call this “margin” too, so always say whether you mean money or percent.
- Gross profit: the total margin from all sales over a period, that is, revenue minus the cost of goods sold (COGS).
- Gross margin: gross profit as a percentage of revenue. This is the “top” margin, before payment fees, shipping, ads and taxes.
- Contribution margin: price minus all variable costs per order, such as the product, packing, payment fee and any shipping you pay for.
- Net margin: net profit as a share of revenue after all costs, including fixed ones such as rent, salaries, software and social contributions.
- Front and back margin: retail chain terms. Front margin is the profit from the shelf markup; back margin is supplier bonuses and payments for volume, shelf placement or promotions.
The key property of margin as a percentage: it is always below 100%. Even if a product costs you 1 ₴ and sells for 1,000 ₴, the margin is 99.9%. A 100% margin is only possible with zero cost.
What is markup and why stores use it
Markup is the percentage you add to cost to get the price. Cost 600 ₴, markup 66.7%, price 1,000 ₴. The profit is the same 400 ₴, but you divide it by the cost, not by the price.
Markup is handy for pricing: a supplier sends a price list, you multiply every item by 1.5 or 2 and get your retail prices. That is why inventory software, marketplaces such as Prom (a major Ukrainian marketplace) and supplier price lists usually talk in markup. Unlike margin, markup has no upper limit: 100%, 300%, 1,000% are all possible.
There is also “negative markup”, when a product is sold below cost: clearing old stock, end-of-season sales, loss leaders. That is a deliberate decision, not a mistake, as long as you track what you earn on the add-on purchases.
Margin vs markup: the difference in one table
Margin and markup differ only in the base the percentage is calculated from. But because of that base, they behave differently and serve different purposes.
| Markup | Margin | |
|---|---|---|
| Based on | Cost (what you paid) | Selling price (revenue) |
| Formula | (price − cost) ÷ cost × 100% | (price − cost) ÷ price × 100% |
| Range | From 0 to infinity | Always below 100% |
| Which is higher | Always higher than margin (when profitable) | Always lower than markup |
| Used for | Setting a price from cost, updating a price list | Seeing what you keep from revenue, comparing products and channels |
| Who uses it | Buyers, suppliers, inventory software | Owners, finance, marketers, investors |
| Effect of a discount | A 20% discount does not “cancel” a 20% markup | You can compare a discount with margin directly: both are based on price |
The last row matters most in practice. Discounts come off the price, and bank fees and Ukrainian sole proprietor taxes are charged on the price too. So make every decision about promotions, ads and sales channels in margin terms, and use markup only to set prices.
Margin and markup formulas with examples
All the formulas come down to three numbers: cost (C), selling price (P) and profit per unit (P − C). For a store, cost means the purchase price plus shipping the goods to you. We leave taxes and fees out for now and come back to them below.
| What you calculate | Formula | Example: C = 600 ₴, P = 1,000 ₴ |
|---|---|---|
| Margin in money | P − C | 1,000 − 600 = 400 ₴ |
| Margin, % | (P − C) ÷ P × 100% | 400 ÷ 1,000 = 40% |
| Markup, % | (P − C) ÷ C × 100% | 400 ÷ 600 = 66.7% |
| Price from markup | C × (1 + markup ÷ 100) | 600 × 1.667 = 1,000 ₴ |
| Price from target margin | C ÷ (1 − margin ÷ 100) | 600 ÷ 0.6 = 1,000 ₴ |
| Cost from price and margin | P × (1 − margin ÷ 100) | 1,000 × 0.6 = 600 ₴ |
How to calculate markup
Subtract the cost from the price, divide the difference by the cost and multiply by 100. For example, you buy a power bank for 850 ₴ and sell it for 1,190 ₴: (1,190 − 850) ÷ 850 × 100% = 40%. If you only know the markup you want, multiply: 850 × 1.4 = 1,190 ₴.
How to calculate margin as a percentage
The same power bank: (1,190 − 850) ÷ 1,190 × 100% = 28.6%. So out of every 100 ₴ of revenue, 28.6 ₴ is yours, but you still have to pay the payment fee, tax and ads out of it.
Price from a target margin: the classic mistake
You want a 30% margin on a product that costs you 700 ₴. The intuitive move is 700 × 1.3 = 910 ₴. But that is a 30% markup, and the margin is only 23.1%. The right way is to divide: 700 ÷ (1 − 0.3) = 1,000 ₴. Check: (1,000 − 700) ÷ 1,000 = 30%.
To skip the manual math, enter your cost in our markup and margin calculator: set the markup, the margin or the price, and the other two fields update automatically.
How to convert markup to margin and back: chart
You do not need the price to convert one into the other; one percentage is enough:
- Margin = markup ÷ (100 + markup) × 100%. A 25% markup: 25 ÷ 125 = 20% margin.
- Markup = margin ÷ (100 − margin) × 100%. A 20% margin: 20 ÷ 80 = 25% markup.
The full markup to margin conversion table, with a hryvnia example for a 1,000 ₴ cost:
| Markup | Margin | Price at a 1,000 ₴ cost | Profit per unit |
|---|---|---|---|
| 10% | 9.1% | 1,100 ₴ | 100 ₴ |
| 15% | 13% | 1,150 ₴ | 150 ₴ |
| 20% | 16.7% | 1,200 ₴ | 200 ₴ |
| 25% | 20% | 1,250 ₴ | 250 ₴ |
| 30% | 23.1% | 1,300 ₴ | 300 ₴ |
| 40% | 28.6% | 1,400 ₴ | 400 ₴ |
| 50% | 33.3% | 1,500 ₴ | 500 ₴ |
| 60% | 37.5% | 1,600 ₴ | 600 ₴ |
| 70% | 41.2% | 1,700 ₴ | 700 ₴ |
| 80% | 44.4% | 1,800 ₴ | 800 ₴ |
| 100% | 50% | 2,000 ₴ | 1,000 ₴ |
| 150% | 60% | 2,500 ₴ | 1,500 ₴ |
| 200% | 66.7% | 3,000 ₴ | 2,000 ₴ |
| 300% | 75% | 4,000 ₴ | 3,000 ₴ |
And the reverse table: which markup to use to hit the margin you need.
| Target margin | 10% | 15% | 20% | 25% | 30% | 35% | 40% | 50% | 60% |
|---|---|---|---|---|---|---|---|---|---|
| Markup | 11.1% | 17.6% | 25% | 33.3% | 42.9% | 53.8% | 66.7% | 100% | 150% |
Note that at low percentages the gap is small (10% vs 9.1%), but then it grows fast. A 50% margin means doubling the cost, and a 60% margin needs a 150% markup.
Gross vs net margin: an example with real fees
The calculator and tables above show gross margin: price minus cost. But less than that reaches you, because payment services, marketplaces and the state take a share of the price. And note: all of these are charged on the price, not on the profit.
Rates that affect an online store’s margin in Ukraine as of November 2026:
| Cost item | Rate | Charged on |
|---|---|---|
| monobank payment link | 1.3% (2% for payments from abroad) | Payment amount |
| PrivatBank online card payments (LiqPay) | 1.3% for Visa and Mastercard cards from any bank | Payment amount |
| NovaPay cash on delivery, Standard plan | 2.5% to a NovaPay account or 3.3% to an account at another bank; the customer pays nothing extra | Cash-on-delivery amount |
| NovaPay cash on delivery, Universal plan | Store: 0.5% or 1.3%. Customer: 1% + 10 ₴ with a NovaPay card or 2% + 20 ₴ in cash or with another card | Cash-on-delivery amount |
| Epicentr marketplace | 5% to 25% depending on the category, plus 120 ₴ a month for the seller account | Product value in completed orders |
| Single tax and military levy, sole proprietor (FOP) group 3 | 5% + 1% (or 3% + VAT + 1%) | Income, that is, the full payment amount |
Sources (mostly in Ukrainian): monobank — payment links, PrivatBank — acquiring for entrepreneurs, NovaPay — cash-on-delivery rates from Apr 29, 2026, epicentrk.ua — for sellers, State Tax Service, Cherkasy region — 2026 rates (Feb 5, 2026). Checked Nov 24, 2026. The rate in your own contract may differ.
Example. A store run by a group 3 sole proprietor (FOP, Ukraine’s simplified tax status for small businesses) without VAT sells a product for 1,000 ₴ that costs 600 ₴: a 66.7% markup and a 40% gross margin. Packing is 15 ₴, taxes are 6% of the price, or 60 ₴. Let’s compare four ways to sell the same product.
| Item, ₴ | Card (monobank, LiqPay) | Cash on delivery, Standard | Same + 10% refused | Marketplace, 15% commission |
|---|---|---|---|---|
| Price | 1,000 | 1,000 | 1,000 | 1,000 |
| Cost | −600 | −600 | −600 | −600 |
| Packing | −15 | −15 | −15 | −15 |
| Fee | −13 (1.3%) | −33 (3.3%) | −33 (3.3%) | −150 (15%) |
| Refusals per collected order | — | — | ≈ −17 | — |
| Taxes 6% | −60 | −60 | −60 | −60 |
| You keep | 312 (31.2%) | 292 (29.2%) | ≈ 275 (27.5%) | 175 (17.5%) |
How we counted refusals: out of 100 cash-on-delivery parcels, 10 were never picked up, and each refusal costs roughly 150 ₴ (shipping both ways plus packing). Profit: 90 × 292 − 10 × 150 = 24,780 ₴, or ≈ 275 ₴ per collected order. We took the 15% marketplace commission as an example from the 5–25% range: check your category’s rate in the marketplace contract.
What the example shows:
- A 40% gross margin is not 40% in your pocket. Even in the cheapest channel, 31% is left after variable costs, and ads and fixed costs have not been subtracted yet.
- Every percent of fees is a percent of margin. Switching from cash on delivery to card prepayment adds 20 ₴ per order in this example, or ≈ 37 ₴ once refusals are counted. How to reduce the share of cash on delivery is covered in our article on cash on delivery vs payment control (in Ukrainian).
- A marketplace needs its own price. A 15% commission eats more than a third of the gross profit. On the other hand, you may have no ad costs there, so compare channels by margin after ads.
If customers message you in chat before buying, it is easy to take prepayment right in the conversation. With Talkoly, starting with the Business plan, an agent sends a monobank or LiqPay invoice in the chat, and only your bank charges a fee at its own rate. See payments in chat for details. For a comparison of the banks themselves, read online card payments for small businesses in Ukraine.
How to build fees and taxes into your price
The usual “price from margin” formula ignores costs that depend on the price. If you add them to cost as a fixed amount, you will get it wrong: the fee grows as the price grows. The correct formula is:
Price = (cost + fixed costs per order) ÷ (1 − target margin − percentage costs)
Fixed costs are packing and any shipping you pay for. Percentage costs are the payment fee, the marketplace commission, the single tax and the military levy. Use decimals throughout: 25% = 0.25.
Example. The same product: cost 600 ₴, packing 15 ₴. You want 25% of the price left after variable costs.
| Channel | Percentage costs | Calculation | Price | Check: you keep |
|---|---|---|---|---|
| Card payment, 1.3% | 1.3% + 6% = 7.3% | 615 ÷ (1 − 0.25 − 0.073) | 908.42 → 909 ₴ | ≈ 228 ₴ (25%) |
| Cash on delivery, Standard, 3.3% | 3.3% + 6% = 9.3% | 615 ÷ (1 − 0.25 − 0.093) | 936.07 → 937 ₴ | ≈ 235 ₴ (25.1%) |
| Marketplace, 15% | 15% + 6% = 21% | 615 ÷ (1 − 0.25 − 0.21) | 1,138.89 → 1,139 ₴ | ≈ 285 ₴ (25%) |
For cash on delivery, add refusals too: divide expected losses on refused parcels by the number of collected orders and include the result in fixed costs. For channels with ads, add your cost per acquisition the same way. The higher your site’s conversion rate, the less ad spend each order carries and the more margin you keep.
If percentage costs plus your target margin approach 100%, the formula returns a very high price or a negative number. That is a signal: you cannot reach the target margin in this channel, so you need a lower cost, lower expenses or a lower target.
Discounts and promo codes: how to protect your margin
A discount comes off the price while the cost stays the same. So your new margin after a discount is:
Margin after discount = (M − D) ÷ (1 − D), where M is the margin before the discount and D is the discount, both as decimals.
A 40% margin and a 10% discount: (0.4 − 0.1) ÷ 0.9 = 33.3%. A 20% discount: 0.2 ÷ 0.8 = 25%. A discount equal to your margin wipes out the profit completely.
How big a discount you can afford
Decide on the minimum margin below which a sale is not worth it, for example 25%. The maximum discount is:
Maximum discount = (M − Mmin) ÷ (1 − Mmin)
A 40% margin with a 25% minimum: (0.4 − 0.25) ÷ 0.75 = 20%. Check: a product priced at 1,000 ₴ with a 600 ₴ cost sells for 800 ₴ after a 20% discount, and the margin is (800 − 600) ÷ 800 = 25%. A 25% discount on this product already breaks your floor.
How to price in a promo code in advance
If you know some customers will come with a 10% off code, set the price so that your target margin survives the discount: price = price without discount ÷ (1 − D). In the example above, card payments need 909 ₴ after the discount, so the base price is 909 ÷ 0.9 = 1,010 ₴. A customer with the code pays 909 ₴, and you still get your 25%. The bank fee and tax are then charged on 909 ₴, so the formula already accounts for them.
But do not raise prices just to show a “strikethrough” discount: the price has to stay competitive for people who buy without a code. A smarter move is to limit the code: exclude low-margin products, set a minimum order value, or give the discount on the second item in the cart.
Worked examples
| Margin before discount | −5% | −10% | −15% | −20% | −25% | −30% |
|---|---|---|---|---|---|---|
| 20% (25% markup) | 15.8% | 11.1% | 5.9% | 0% | −6.7% | −14.3% |
| 30% (42.9% markup) | 26.3% | 22.2% | 17.6% | 12.5% | 6.7% | 0% |
| 40% (66.7% markup) | 36.8% | 33.3% | 29.4% | 25% | 20% | 14.3% |
| 50% (100% markup) | 47.4% | 44.4% | 41.2% | 37.5% | 33.3% | 28.6% |
This is gross margin: fees and taxes still come out of it. How many extra sales a discount needs to pay off is covered in our article on promo codes for an online store, and you can create codes with restrictions in our promo code generator.
An alternative to discounts that does not eat into margin is upselling. Offering a cable or a case with a 50–60% margin alongside a power bank often pays better than taking 10% off the main product. For example phrases, see upselling and cross-selling in chat.
Common margin and markup mistakes
- Mixing up the terms. “Our margin is 50%”, when it is actually a 50% markup and a 33.3% margin. Every ad and discount calculation built on that number comes out too high.
- Offering a discount equal to the markup. A product with a 400 ₴ cost and a 25% markup sells for 500 ₴. A 25% discount brings it to 375 ₴, which is 25 ₴ below cost. Even a 20% discount takes you to zero, because a 25% markup = a 20% margin.
- Calculating price from margin by multiplying. 700 × 1.3 = 910 ₴ is a 30% markup, and the margin is only 23.1%. For a 30% margin, divide: 700 ÷ 0.7 = 1,000 ₴.
- Adding fees to cost as a fixed amount. Bank, NovaPay and marketplace fees and sole proprietor taxes grow with the price, so they belong in the denominator of the formula.
- Ignoring refusals and returns. A cash-on-delivery parcel that is never picked up costs you shipping both ways. The more refusals, the lower the real margin on each collected order.
- Averaging margins with a simple mean. Weight them by revenue; see the example below.
- Mixing prices with and without VAT. A VAT payer calculates margin on prices excluding tax: a product sold for 1,200 ₴ including 20% VAT brings you 1,000 ₴ of revenue. Otherwise your margin is overstated.
- Using the same markup on everything. Cheap products with the same markup often fail to cover fixed per-order costs: 15 ₴ of packing is 1.5% of a 1,000 ₴ product but 15% of a 100 ₴ one.
- Judging a channel by gross margin. A marketplace and your own site at the same price produce different profit. Compare margin after fees, ads and refusals.
Margin or markup: which one to use when
You need both, but for different jobs:
| Task | Metric | Why |
|---|---|---|
| Reprice products from a new supplier price list | Markup | Multiply cost by a factor, fast and in bulk |
| Decide on a discount | Margin | A discount is based on price, just like margin |
| Compare products or categories | Margin in money and percent | Shows what actually makes money, not just revenue |
| Set an ad spend limit | Margin after variable costs | Ads must cost less than what is left from an order |
| Compare your site, Prom and a marketplace | Margin after fees | Channel fees differ while markup stays the same |
| Report to an owner or investor | Gross and net margin | The standard language of finance |
Rule of thumb: set prices with markup, make decisions with margin. If you dropship, this matters even more: the dropship price, cash on delivery and refusals eat most of the difference. For a full per-order calculation, see dropshipping in Ukraine.
What is a good margin for an online store?
There is no universal “normal” margin: it depends on your niche, average order value, channels and share of repeat purchases. It is more honest to build your own minimum margin from the bottom up:
- Variable costs per order as a percentage of price: payment fee, sole proprietor tax, marketplace commission. In the example above, 7.3% for card payments and 21% for the marketplace.
- Fixed costs per order as a percentage of average order value: packing, shipping you pay for, refusals.
- Ad spend per order: monthly ad budget ÷ number of orders, as a percentage of order value.
- Fixed overhead: social contributions, software, salaries, rent ÷ orders per month.
- Target profit as a percentage of order value.
The sum of these five items is the minimum gross margin your price has to deliver. If it comes to 45% and the market only allows 30%, the problem is not your markup: you need cheaper sourcing, a higher order value or a different channel.
Also remember a Ukrainian sole proprietor’s fixed payments. The unified social contribution (ESV) in 2026 is at least 1,902.34 ₴ a month (22% of the 8,647 ₴ minimum wage, according to the State Tax Service, in Ukrainian). At 300 ₴ profit per order, the first seven orders of each month go to that alone.
Average store margin: why not a simple average
A store sells dozens of products with different margins. To know the margin of the whole store, weight by revenue: total gross profit ÷ total revenue. A simple monthly example for an accessories store:
| Category | Revenue | Cost | Gross profit | Margin |
|---|---|---|---|---|
| Phone cases | 20,000 ₴ | 8,000 ₴ | 12,000 ₴ | 60% |
| Headphones | 50,000 ₴ | 37,500 ₴ | 12,500 ₴ | 25% |
| Cables | 10,000 ₴ | 5,000 ₴ | 5,000 ₴ | 50% |
| Total | 80,000 ₴ | 50,500 ₴ | 29,500 ₴ | 36.9% |
The simple average of the three margins is (60 + 25 + 50) ÷ 3 = 45%. The store’s real margin is 36.9%, because the headphones, with the lowest margin, bring in the most revenue. An 8-percentage-point gap on 80,000 ₴ of revenue is about 6,500 ₴ of “imaginary” profit a month (45% vs 36.9% of 80,000 ₴).
The practical takeaway: growing sales of a cheap category can lower your overall margin even while revenue rises. Review your sales mix every month and point your ads at the categories with the highest margin after costs.
Frequently asked questions
Which is higher, margin or markup?
If a product sells at a profit, markup is always higher than margin. The reason is the base: markup is divided by cost, and margin by the selling price, which is larger than cost. For example, a 50% markup equals a 33.3% margin.
What margin is a 25% markup?
A 25% markup equals a 20% margin: 25 ÷ (100 + 25) × 100% = 20%. Cost 400 ₴, price 500 ₴, profit 100 ₴: that is 25% of cost and 20% of price. So a 20% discount on such a product already wipes out the profit.
How do you calculate markup?
Subtract the cost from the selling price, divide by the cost and multiply by 100%. Cost 850 ₴, price 1,190 ₴: (1,190 − 850) ÷ 850 = 40%. To get a price from a known markup, multiply the cost by (1 + markup ÷ 100).
How do you calculate margin as a percentage?
Margin percentage = (price − cost) ÷ price × 100%. For a 1,000 ₴ price and a 600 ₴ cost, that is 40%. If you need a price for a target margin, divide the cost by (1 − margin ÷ 100): 600 ÷ 0.6 = 1,000 ₴.
Is a 50% markup the same as a 50% margin?
No. A 50% markup is a 33.3% margin, and a 50% margin requires a 100% markup, that is, doubling the cost. People often say “margin” when they mean markup, so check which one a number refers to before you base a discount or an ad budget on it.
Should payment fees and shipping be included in cost?
For gross margin, no: it is calculated as price minus cost. For margin after variable costs, yes, but count fees and taxes as a percentage of price, and packing and shipping you pay for as a fixed amount. The price formula that handles both types of costs is in the article above.
Can margin be negative?
Yes, if the selling price is below cost, for example in a clearance sale or after a big discount. A 20% margin with a 30% discount becomes −14.3%. Sometimes that is a deliberate move to free up stock, but track those sales separately.
How do I calculate margin if I am a VAT payer?
Use prices excluding VAT, for both the selling price and the cost. A product sold for 1,200 ₴ including VAT brings you 1,000 ₴ of revenue, and the input VAT credit on your purchase lowers your cost. If you mix a price including VAT with a cost excluding VAT, your margin will be overstated.
How do I set a price so a 10% discount still leaves my target margin?
First calculate the price that gives your target margin, then divide it by 0.9. Cost 600 ₴, target 25% after fees and taxes: the card price is 909 ₴, so the base price is 909 ÷ 0.9 = 1,010 ₴. A customer with the promo code pays 909 ₴.
What is a good profit margin for an online store?
There is no single standard. A good margin covers fees, taxes, shipping, refusals, ads and fixed costs and still leaves the profit you want. Add up those items as a percentage of your average order value, and the total is your minimum margin.


