Bad advice, corrected · checked 19 October 2026

A 20% markup is not a 20% margin.

If you set prices by adding a percentage to your cost, this is the number to check.

The short version

Markup is your profit divided by what the work costs you. Margin is your profit divided by what the client pays.

Say a developer costs you $100 an hour. Add 20% and you bill $120. You keep $20. That's 16.7% of the price.

For a real 20% margin, divide your cost by 0.8. That's $125 an hour, not $120.

In numbers

One developer hour that costs you $100
PricingYou billYou keepMargin
20% markup ($100 × 1.2)$120$2016.7%
20% margin ($100 ÷ 0.8)$125$2520%

Sources

Checked on 19 October 2026.

No law here, just arithmetic. Margin = profit ÷ price. For a target margin, price = cost ÷ (1 − margin). Check it with your own numbers.

Watch

Psst posts every video on these channels.

Psst is made by Zain Ali, who founded ivector, a software company.