Morocco Import Customs Duty Calculation: Step-by-Step Method
Customs value, HS code, import duty, parafiscal tax and VAT: the complete method for calculating customs duties on an import into Morocco, step by step.
Why calculate before the goods arrive
An importer who only discovers the amount of duties at customs clearance loses control of both cash flow and selling price. Calculating in advance makes it possible to negotiate with the supplier, choose the Incoterm with full knowledge of the consequences, plan the outlay and compare two possible origins. The customs broker, for their part, needs a reliable estimate to inform the client before lodging the declaration and to avoid a tense discussion when payment is due.
The calculation always follows the same logic: establish the customs value, identify the tariff heading of each item, then apply the rates in force on the reference date. The rates themselves cannot be guessed. They depend on the HS code, the origin of the goods and the applicable legislation, and must be checked on the portal of the ADII (Moroccan customs), douane.gov.ma, or in the BADR system.
Step 1: establish the customs value
The basis of the calculation is the customs value. It generally starts from the transaction value shown on the commercial invoice, adjusted to obtain a CIF value, meaning cost, insurance and freight up to entry into Moroccan territory. If the invoice is ex works or FOB, international transport and insurance must be added. If it is already CIF, these items are in principle included in the invoiced price.
The value is then converted into dirhams at the applicable exchange rate. An exchange rate error, even a small one, carries through to every duty and to VAT, since each of them is calculated from this value. The rate used must therefore be dated and sourced, and never carried over from a previous file out of habit or lack of time.
Step 2: classify each item in the tariff nomenclature
Each product corresponds to a heading of the Harmonized System, supplemented by the subdivisions of the Moroccan nomenclature. This heading determines the import duty, any specific taxes and the documents required. A ten-line invoice can therefore fall under several headings, with different rates. Classification is done item by item, based on the section and chapter notes and on consulting the tariff.
When classification is uncertain, it is better to take the time to check than to declare an approximate heading. A classification error can lead to a reassessment, penalties or goods held at the port, not to mention the loss of the client's trust. A tool can help with the search, but the customs broker alone makes the decision and puts their signature on it.
Step 3: apply duties and taxes
Once the value and the heading are known, the calculation becomes mechanical. Import duty is obtained by applying the rate of the heading to the customs value. Other levies may be added, such as the parafiscal import tax or a domestic consumption tax (TIC) for certain products. VAT on imports is then calculated on the customs value plus these duties and taxes.
Fictitious example, rates to be checked: goods with a CIF value of 100,000 DH, an assumed duty of 10% and an assumed parafiscal tax of 0.25% give 10,000 DH of duty and 250 DH of tax. VAT at the standard rate of 20% is then charged on 110,250 DH, i.e. 22,050 DH. These figures illustrate the method, not the actual tariff of any product.
- CIF customs value converted into dirhams
- Import duty: customs value × rate of the heading
- Parafiscal tax and any other taxes: customs value × rate
- VAT on imports: (value + duties and taxes) × VAT rate
Where to check the rates in force
Rates change with finance laws and trade agreements. The reference remains the Customs and Indirect Taxes Administration (ADII): its portal douane.gov.ma provides access to the tariff search, and BADR is the system in which the declaration is lodged and assessed. For an origin covered by a free trade agreement, the preferential rate also requires a valid proof of origin that complies with the agreement concerned.
Always record the date and source of the rate used. If a client disputes an estimate three months later, you will be able to explain where each percentage came from and whether the tariff changed in the meantime. This discipline also protects the firm during a post-clearance audit, when an assessment made long ago has to be justified.
What douane.m2m.ma does in this calculation
The douane.m2m.ma platform applies exactly this method. The supplier's invoice, as a PDF or a photo, is read by AI, which suggests an HS code for each item with a confidence level and a short justification. The customs broker validates or corrects it: only validated items are included in the calculation. The CIF value is established according to the Incoterm and converted into dirhams, then import duty, parafiscal tax, any TIC and VAT are calculated line by line.
Rates come from the firm's rate table, each with an effective date and a source. An unconfirmed rate is flagged "to be checked" in every calculation that uses it, and the Excel export reminds you to confirm the amounts in BADR before lodging the DUM (single goods declaration). To see the method applied to your own invoices, try douane.m2m.ma: the free trial is counted in files, with no commitment.
Frequently asked questions
Is import duty the same for all products?
No. It depends on the product's tariff heading in the nomenclature and on its origin, which may qualify for a preferential rate. Rates also change with finance laws. Always check the rate in force on the ADII portal or in BADR before preparing an estimate for a client.
On what basis is VAT on imports calculated?
It applies to the customs value plus import duty and the other taxes collected on importation. The standard rate is 20%, but other rates exist depending on the product. The applicable rate must be checked for each heading before the declaration is assessed.
Can a calculator replace the customs broker?
No. A tool speeds up data entry and calculation, but classification, the choice of procedure and the checking of rates remain the customs broker's decisions. On douane.m2m.ma, no item is calculated without their validation, and every rate in the rate table shows its date and source.
Put it into practice with m2m.ma
E-invoicing, accounting and business management services for Moroccan companies. 15-day free trial, no credit card.

