# Margin and markup calculator: find your profit and the shelf price

> Enter a cost and a selling price to see profit, margin and markup, or enter the margin you want and read off the price. Pick your country for the currency and the VAT on the shelf price. Nothing is uploaded.

- Web page: https://raqambooks.com/tools/margin-calculator/
- Last updated: 2026-12-05
- Published: 2026-10-30
- Other languages: [ar](https://raqambooks.com/ar/tools/margin-calculator.md), [ur](https://raqambooks.com/ur/tools/margin-calculator.md)

## Calculate margin, markup and the price with VAT

**Summary:** This free calculator works out profit, margin and markup from a cost and a selling price, or finds the price that gives the margin you want. It uses the exact 2- or 3-decimal currency of the country you pick and, where VAT is in force, adds it to show the shelf price. Everything runs in your browser.

> Interactive tool: runs in the browser, nothing is uploaded. Use the web page.

## How margin and markup are worked out

**Summary:** Profit is the selling price minus the cost. Margin divides profit by the selling price, while markup divides it by the cost, so the same sale always shows a smaller margin than markup. To reach a target margin, divide the cost by one minus the margin as a fraction. Results show one decimal place.

```
profit = price - cost
margin = profit / price
markup = profit / cost
price  = cost / (1 - margin)
```

### Why margin is always the smaller number

Both figures use the same profit. Margin divides it by the selling price, which is larger than the cost, so the share is smaller. A 25.0% markup is a 20.0% margin, and a 100.0% markup is only a 50.0% margin. Mixing the two up is the usual reason a price comes out too low.

### Prices are held in whole minor units

Amounts are converted to whole fils, halalas or baisa before any division, and the price for a target margin is rounded half-up once, to the currency's smallest unit. SAR, AED and QAR use 2 decimals; OMR, BHD and KWD use 3.

## Worked examples, computed by the calculator

**Summary:** A cost of AED 80.00 sold at AED 100.00 leaves AED 20.00 of profit: a 20.0% margin and a 25.0% markup. Going the other way, a cost of AED 60.00 with a 40% margin needs a price of AED 100.00, which is AED 105.00 with 5% VAT. Both are produced by the calculator's own functions.

### From a cost and a price

**Margin and markup in UAE dirhams**

| Step | Working | Result |
| --- | --- | --- |
| Cost | Input | AED 80.00 |
| Selling price | Input | AED 100.00 |
| Profit | AED 100.00 - AED 80.00 | AED 20.00 |
| Margin | AED 20.00 / AED 100.00 | 20.0% |
| Markup | AED 20.00 / AED 80.00 | 25.0% |

### From a margin you want

**Price for a target margin, in UAE dirhams and Omani rials**

| Step | UAE (AED, 2 decimals) | Oman (OMR, 3 decimals) |
| --- | --- | --- |
| Cost | AED 60.00 | OMR 60.000 |
| Margin you want | 40% | 40% |
| Selling price before VAT | AED 100.00 | OMR 100.000 |
| Markup it implies | 66.7% | 66.7% |
| Price including 5% VAT | AED 105.00 | OMR 105.000 |

_A 40% margin on a cost of AED 60.00 is a price of AED 100.00, because the cost divided by one minus the margin gives that price. The price is a 66.7% markup on the cost._

## VAT on the shelf price, country by country

**Summary:** The calculator adds the standard VAT rate of the country you pick to the selling price: 15% in Saudi Arabia, 10% in Bahrain, 5% in the UAE and 5% in Oman. Qatar and Kuwait have no VAT in force, so no VAT line appears. Rates come from this site's country data, reviewed on 20 November 2026.

Details per country: [Saudi Arabia](https://raqambooks.com/gcc/saudi-arabia/), [UAE](https://raqambooks.com/gcc/uae/), [Oman](https://raqambooks.com/gcc/oman/), [Bahrain](https://raqambooks.com/gcc/bahrain/), [Qatar](https://raqambooks.com/gcc/qatar/), [Kuwait](https://raqambooks.com/gcc/kuwait/). To add or take out VAT on any price, use the [GCC VAT calculator](https://raqambooks.com/tools/gcc-vat-calculator/).

**Currency, decimals and standard VAT by country**

| Country | Currency and decimals | Standard VAT | Authority |
| --- | --- | --- | --- |
| Saudi Arabia | SAR, 2 decimals | 15% | ZATCA |
| United Arab Emirates | AED, 2 decimals | 5% | FTA / MoF |
| Oman | OMR, 3 decimals | 5% | OTA |
| Bahrain | BHD, 3 decimals | 10% | NBR |
| Qatar | QAR, 2 decimals | No VAT in force | GTA |
| Kuwait | KWD, 3 decimals | No VAT in force | MoF |

_Standard rates only. Zero-rated and exempt supplies are treated differently: confirm with the tax authority._

## What the result leaves out, and when to ask an accountant

**Summary:** The calculator treats one item at a time and uses the cost you type. It does not know freight, duty, discounts, returns or wastage unless you put them in the cost, and it cannot tell whether the VAT you pay on purchases is recoverable. Ask your accountant how your business treats those before you fix prices.

- **Use the landed cost**: Add freight, duty and handling you pay to the purchase price, so the margin you see is the one you keep. The [purchase and inventory module](https://raqambooks.com/features/purchase-inventory/) calculates landed cost per item.
- **Cost before VAT**: Type the cost and the price before VAT. If you can recover the VAT you pay on purchases it is not part of your cost; whether that applies to you is a question for your accountant.
- **Discounts, returns and wastage**: A discount on the shelf price lowers the margin, and returns or spoilage raise the real cost. Work out the margin after the discount you actually give.
- **Nothing is saved**: Close the tab and the numbers are gone. The desktop app keeps item costs and prices with your stock; see [the accounting module](https://raqambooks.com/features/accounting/) and [download the app](https://raqambooks.com/download/) to try it on your own data.

## Frequently asked questions

**What is the difference between margin and markup?**

Margin is profit as a share of the selling price. Markup is profit as a share of the cost. The same sale gives a smaller margin than markup: a 25.0% markup is a 20.0% margin. Use margin to judge a price and markup to add a profit to a cost.

**How do I price an item for a 40% margin?**

Divide the cost by 0.6, which is one minus 0.4. A cost of AED 60.00 gives a price of AED 100.00. Choose "I know the margin I want" in the calculator, type the cost and 40, and it returns the price, the profit and the price with VAT.

**Should the cost include VAT?**

Use the cost and the price before VAT. If your business can recover the VAT it pays on purchases, that VAT is not a cost. Whether you can recover it depends on your registration and your supplies, so ask your accountant.

**Why is there no VAT line for Qatar or Kuwait?**

Neither country has VAT in force, so the shelf price equals the selling price. The calculator still works in QAR (2 decimals) and KWD (3 decimals). If a VAT is introduced, the rate would come from this site's country data.

**Is what I enter sent anywhere?**

No. The calculation runs in your browser with no network request and nothing is stored. Closing or reloading the page clears what you typed. The only thing that can leave the page is a result you choose to copy or download.

## Related pages

- [GCC VAT calculator](https://raqambooks.com/tools/gcc-vat-calculator/): Free GCC VAT calculator: add or extract VAT for Saudi Arabia (15%), Bahrain (10%), UAE (5%) and Oman (5%) with exact 2- and 3-decimal rounding.
- [Credit note calculator](https://raqambooks.com/tools/credit-note-calculator/): Free credit note calculator for Saudi Arabia, UAE, Oman and Bahrain: enter the invoice and the credit amount to see the VAT credited and what remains.
- [Purchase & Inventory](https://raqambooks.com/features/purchase-inventory/): Supplier purchase orders, landed-cost calculation, multi-warehouse transfers, batch and expiry tracking and low-stock alerts in an offline desktop ERP.
- [Accounting & VAT Reports](https://raqambooks.com/features/accounting/): Chart of accounts, trial balance, P&L, balance sheet and VAT return reports with exact 2-decimal (SAR, AED, QAR) and 3-decimal (KWD, BHD, OMR) amounts.
- [Download](https://raqambooks.com/download/): Choose your country edition of RaqamBooks, an early version, and download the Windows or Mac installer. SHA-256 checksums are published; it works offline.

## Download RaqamBooks and run your business offline

Install it on your own computer, keep your data local and avoid per-user monthly cloud fees. Early version for Windows 10/11 and macOS 13 or later (Apple chip and Intel chip).

[All downloads, checksums and install guide](https://raqambooks.com/download/)
