---
title: "Margin vs Markup, Net vs Gross: Formulas | VulCode"
description: "Margin vs markup on one example: cost 100, net price 150, a 50% markup and a 33.33% margin. Net and gross at 23% VAT, plus a free margin and VAT calculator."
url: "https://vulcode.com/en/blog/net-gross-margin-markup"
lang: "en"
---

[Blog](https://vulcode.com/en/blog)

# Margin vs markup, net vs gross: formulas and the four numbers people mix up most

The same profit is a 50% markup and a 33.33% margin, and the gross price belongs in neither formula

2 November 2026, [Michał Fox](https://vulcode.com/en/company/about)

## Margin vs markup on an example: cost 100, net price 150

An item costs 100 PLN and you sell it for 150 PLN net (the examples use zloty, PLN, and Poland's standard 23% VAT; the formulas work in any currency). The 50 PLN profit is a 50% markup, because markup divides profit by cost, but only a 33.33% margin, because margin divides the same profit by the price. Anyone who wants a 50% margin and adds 50% to the cost earns half of what they planned per item: at a cost of 100 PLN, a 50% margin means a net price of 200 PLN.

Margin = (net price - cost) / net price x 100%.

Markup = (net price - cost) / cost x 100%.

For a 30% margin on a cost of 100 PLN, the net price is 100 / (1 - 0.30) = 142.86 PLN.

Four numbers, one example

| Number | How it is calculated | Example |
| --- | --- | --- |
| Net | the price before VAT | 150.00 PLN |
| Gross | net plus VAT, here the Polish standard 23% | 184.50 PLN |
| Markup | profit divided by cost | 50% |
| Margin | profit divided by the net price | 33.33% |

## Margin comes from net, not gross

Margin and markup are worked out on net amounts. Taken from the gross price of 184.50 PLN, the margin would come out at 45.8%, although the business still earns the same 50 PLN per item. When you work backwards, rounding matters: our VAT calculator rounds only the tax to the grosz (one hundredth of a zloty), so net plus VAT always equals gross, and 100 PLN gross at 23% splits into 81.30 PLN net and 18.70 PLN VAT.

The margin calculator works three ways: from a price it gives the margin and the markup, and from a target margin or markup it gives the selling price. The VAT calculator covers the 23, 8, 5 and 0% rates.

Work out margin and markup in the [margin and markup calculator](https://vulcode.com/en/tools/vat-and-margin-calculator?tab=margin), and net and gross in the [VAT calculator](https://vulcode.com/en/tools/vat-and-margin-calculator).

Was this article helpful?

Yes

No

## Tell us what you want to build.

A free quote comes back within an hour during working hours. You talk to the person who writes the code.

[Free quote](https://vulcode.com/en/quote) [Free consultation](https://vulcode.com/en/consultation)

- [hello@vulcode.com](mailto:hello@vulcode.com)

- [+48 576 043 920](tel:+48576043920)

- [discord.gg/vulcode](https://discord.gg/vulcode)
