Pyalm Books
By Fadhil Abdulla

COGS and Gross Profit for a UAE Trading Business: A Simple Guide

How to calculate cost of goods sold and gross margin for a trading or retail business, with a worked example.

Editorial disclosure: Pyalm publishes and maintains the products and free tools discussed on this site. Regulatory statements are linked to primary sources where applicable. No independent professional review is claimed unless a reviewer is explicitly named.

If you buy and resell goods, cost of goods sold (COGS) and gross profit are the first numbers to get right.

The formula

COGS = opening inventory + purchases − closing inventory

Gross profit = revenue − COGS

Gross margin = gross profit ÷ revenue

A worked example

A trading company in Dubai starts the quarter with AED 80,000 of stock, buys AED 300,000 of goods and ends with AED 95,000 of stock. Revenue is AED 450,000.

  • COGS = 80,000 + 300,000 − 95,000 = AED 285,000
  • Gross profit = 450,000 − 285,000 = AED 165,000
  • Gross margin = 36.7%

Try your own figures in the COGS calculator.

What to include in purchases

The cost of goods plus freight-in and import costs that are part of landing them. Exclude recoverable input VAT, rent and general overheads.

Markup vs margin

A 50% markup is a 33.3% margin. Do not mix them when you set prices. Use the markup calculator.

Why your closing stock matters

COGS depends on the closing stock figure. Count stock regularly, or use an inventory system that updates stock on every sale and purchase. See inventory turnover for how fast stock is moving.

From gross profit to net profit

Subtract operating expenses to reach operating profit. The EBITDA calculator walks through EBITDA, EBIT and net profit.

Keep it automatic

When purchases and POS or invoice sales post to the same system, COGS updates on every transaction. Pyalm Books does this and is free during beta. Start free.

Keep reading

More from Pyalm

Oct 14, 2026

How to Choose Accounting Software in the UAE: Size, Budget and FTA Compliance

Choosing accounting software in the UAE depends on your business size, budget and compliance needs with the FTA for VAT and Corporate Tax. A practical checklist for 2026.

Oct 14, 2026

Free Accounting Software in the UAE: What You Really Get (2026)

Free trials, limited free plans and free betas are not the same thing. What to check before you trust free accounting software with UAE VAT records.

Oct 14, 2026

Pyalm Books Is Free During Beta: What's Included

Pyalm Books is free to use while in beta. What you get, who it suits, and what has not been decided yet.

Oct 14, 2026

UAE Corporate Tax Bookkeeping Checklist for Small Businesses

Corporate Tax starts from your accounting records. The books and documents a UAE small business should keep, and how software helps.

Oct 14, 2026

How to File a UAE VAT Return, Step by Step

From recording sales and purchases to submitting the VAT201 return on the FTA portal: a step-by-step walkthrough.

Oct 14, 2026

UAE VAT Registration: Thresholds, Deadlines and Common Mistakes

When a UAE business must register for VAT, when it can register voluntarily, and the mistakes that lead to penalties.

Get UAE VAT & E-Invoicing Ready

Pyalm Books handles VAT, PINT AE e-invoices, and FTA returns for Dubai businesses — no extra development cost.

Start free on Pyalm Books Learn about Pyalm Books Log in