
Three levies, three different bases. The order of calculation is not an accounting convention: it changes the amount.
The most widespread error in an import calculation is not using the wrong rate. It is applying the right rate to the wrong base. Import duty is levied on the customs value; import VAT is levied on that same value increased by the duties and taxes already assessed. Reversing the order, or forgetting a layer, produces a gap that lands entirely in the margin.
The four amounts to assemble before opening the calculator
1
Customs value
CIF Moroccan frontier, all adjustments included
2
Ten-digit line
It carries the rate; the six-digit subheading does not
3
Proven origin
Preferential or general — two distinct rates
4
Declared procedure
Home use or suspension
Until those four elements are fixed, any figure produced is an estimate. Most often it is the third that is missing: an origin announced by the supplier is not a proven origin, and a preference claimed without valid evidence on the day of declaration is assessed at the general rate.
The cascade on a value of MAD 100,000
The example below is entirely hypothetical. The rates are there to show the mechanics of the cascade; replace them with the ones your line actually carries on the date of the transaction.
| Step | Base | Assumed rate | Amount | Next base |
|---|---|---|---|---|
| Customs value (CIF) | — | — | 100,000 | 100,000 |
| Import duty | Customs value | 10% | 10,000 | 110,000 |
| Parafiscal import levy | Customs value | 0.25% | 250 | 110,250 |
| Import VAT | Value + duty + levy | 20% | 22,050 | — |
| Total due on assessment | 32,300 |
Note that VAT is not calculated on 100,000 but on 110,250. A calculation of "10% + 0.25% + 20% = 30.25% applied to 100,000" gives MAD 30,250, which is MAD 2,050 less. On a regular flow, that methodological gap repeats on every declaration.
Recoverable where the right to deduct is open
Permanent cost, not deductible
Permanent cost
Invoice, freight and adjustments: what enters the customs value
The customs value is not the invoice amount. It starts from the price actually paid or payable, then adds the elements that are not always shown on it and removes those that do not belong.
To add
Freight and insurance to the point of introduction, buying commissions excluded but selling commissions included, the cost of containers and packing, assists supplied free of charge by the buyer (moulds, dies, drawings), royalties and licence fees related to the goods, and any proceeds of resale accruing to the seller.
To exclude, if separated and justified
Transport charges after the point of introduction, installation or assembly costs incurred after importation, the import duties and taxes themselves, interest under a written financing agreement, and discounts actually granted before the declaration.
Each of those lines must be separable in a document. A lump sum for "transport and sundry charges" that mixes pre- and post-arrival legs is not deductible: absent a breakdown, the whole amount stays in the base. The methodological framework is set out in the WTO customs valuation material; the exchange rules applicable to foreign-currency amounts fall under the Office des Changes regulations.
From HS code to cash provision
- D−15
Freeze classification and origin
Before shipment, not on arrival. A missing preference is discovered while the certificate can still be obtained, not when the goods are on the quay.
- D−7
Cost the expected assessment
Full cascade on the estimated value, with the ten-digit line retained. The amount provisioned is the total due, not the import duty alone.
- D0
Declare and assess
Compare the assessment obtained against the amount provisioned. A gap above the threshold you set opens an analysis, not a silent budget adjustment.
- D+5
Reconcile and explain the gap
Three causes cover nearly every case: customs value recomputed, national line different from the one planned, origin not accepted for want of compliant evidence.
- D+30
Fix the master data
If the gap comes from a product record or a declaration template, fix it there. Otherwise the same error returns on the next shipment.
Check the line that carries the rate
A rate is never read on a six-digit subheading. Open the full national line and check, on the same record, the import duty rate, the unit of measure expected, and the measures attached — technical control, licence, sanitary restriction.
8471300000Open the tariff record 6109100000Open the tariff recordReceipts and imports: two measures not to confuse
Published customs receipts and the value of imports measure different things. The former aggregate duties, import VAT and domestic taxes actually collected over a budget period; the latter measure the value of flows over a calendar period. Dividing one by the other does not produce an "average rate" usable in a quotation.
The trade series are published in the Office des Changes 2025 indicators, and the administration's activity in the ADII 2024 annual report. The two publications have distinct scopes and calendars: always state which one you are citing.
Before communicating a landed cost to a client or a purchasing committee
| Control point | Status | What you must be able to show |
|---|---|---|
| The ten-digit line is the approved one | Required | Not the one from the last file, nor the supplier's. |
| VAT is calculated after duty and the levy | Required | The ordering error is the most frequent and the most silent. |
| The preference is backed by valid origin evidence | Required | Otherwise, cost at the general rate and flag the gap. |
| Customs value based on the invoice alone | Blocking | Blocking if freight, insurance or free-of-charge assists have not been handled. |
| Post-assessment charges added to the landed cost | To do | Transit, handling, storage, fees, guarantee cost. |
The 2025 figures, and the calculation that links them
822.2
MAD bn imported
761.3 in 2024
469.1
MAD bn exported
456.3 in 2024
353.1
MAD bn deficit
Not published: calculated below
The deficit and the coverage ratio are not given as such: they are calculated from the two series. The check consists of recovering the changes the source itself publishes.
| Quantity | Calculation | Result | Check |
|---|---|---|---|
| 2025 deficit | 822,223 − 469,075 | MAD 353,148 m | — |
| 2024 deficit | 761,272 − 456,342 | MAD 304,930 m | — |
| Deficit growth | 353,148 / 304,930 − 1 | +15.81% | Published: +15.8% |
| Coverage 2025 | 469,075 / 822,223 | 57.05% | — |
| Coverage 2024 | 456,342 / 761,272 | 59.94% | — |
| Change in coverage | 57.05 − 59.94 | −2.89 points | Published: −2.9 points |
The last two lines land on the published changes, which validates the reading of the series. That is the only serious use of these aggregates: checking that you are reading the right quantity.
Underlying series: Office des Changes 2025 indicators, product detail in Office des Changes statistics, international comparisons in UN Comtrade.
Update the calculation when the transaction changes
Redo the calculation if the Incoterm changes — it moves the boundary of included freight — if origin changes, if the procedure changes, if the tariff edition changes, or if a retroactive price adjustment occurs after the declaration. That last case is the one most often forgotten: a year-end rebate granted on goods already imported has customs consequences, not only accounting ones.
Related articles

Find a Moroccan HS code without relying on a keyword match
Keyword search returns plausible wording, not defensible headings. The attribute-led method that produces a code you can stand behind.

How to choose a customs broker and freight forwarder in Morocco
Comparing fees says nothing about the quality of a declarant. The mandate, the hard-file test, and the evidence they owe you back.

Classify a product catalogue with HS codes that stay maintainable
Classifying 4,000 references is not classifying 4,000 times. How to build families on stable attributes and handle the exceptions first.

Automatic HS classification: what the software can and cannot decide
An automatic suggestion is a ranked hypothesis, not a legal decision. Where to draw the line between what the machine proposes and what a person signs.