Blog
March 6, 2026
7 min read

HS code with 6 or 10 digits: which number belongs on a Moroccan declaration?

The first six digits are shared by 200 countries; the last four carry the Moroccan rate. What the national extension actually changes.

Comparison between the international subheading and the Moroccan national line

A six-digit code travels between countries. A ten-digit code is declared in one.

Your Chinese supplier sends you "8517.13". Your European customer replies "8517.13.00". Your Moroccan broker keys in "8517.13.00.00". All three are describing the same product, and only one of those codes can appear on a declaration.

This confusion is expensive because it is invisible: a six-digit code is syntactically valid everywhere and functionally unusable in Morocco.

What each segment adds

8517Heading — common to every party to the HS Convention4 digits
8517.13Subheading — common, the last international level6 digits
8517.13.00Subdivision — intermediate level, varies by country8 digits
8517.13.00.00Moroccan national line — duty rate, unit, measures10 digits
The same device, read at four depths. Only the last line carries a rate and a unit.

The first six digits are fixed by the WCO HS Nomenclature and bind Morocco under the HS Convention. Beyond that, each country is free: which is why a mapping between an eight-digit European code and a ten-digit Moroccan line is never automatic.

Six digits against ten, item by item

Six-digit subheading

Ten-digit national line

Authority

HS Convention — identical in more than 200 countries and territories.

Moroccan integrated tariff — valid in Morocco only.

Carries a rate

No. No duty attaches at this level.

Yes: import duty, and where applicable additional taxes.

Carries a unit

No.

Yes: supplementary unit of measure required at data entry.

Carries the measures

No: licences, controls and restrictions do not attach here.

Yes: technical control, authorisation, sanitary or trade-defence measure.

Usable on a declaration

No. A declaration cannot be lodged on six digits.

Yes. It is the only declarable level.

Usable for cross-country statistics

Yes: it is the only level comparable between countries.

No, unless you first fall back to the six-digit level.

Both levels are useful, but never for the same task. Comparing countries requires six digits; declaring in Morocco requires ten.

The facts that select the national subdivision

Descending from six to ten digits is not an administrative formality. It is a second classification decision, resting on product facts that were not needed at international level. Depending on the chapter, the national extension separates articles by material, destination, capacity, packing or degree of finish.

What you often have to produce to settle the last four digits

Control pointStatusWhat you must be able to show
Capacity, power, dimension or unit weightRequiredThe criterion behind many technical subdivisions in chapters 84 and 85.
Composition by percentageRequiredDecisive in the textile chapters for separating neighbouring lines.
PackingRequiredBulk, retail packing, container capacity: a frequent criterion in food products.
Proven destinationRequiredSome national lines are reserved for a documented use.
Extrapolation from a foreign eight-digit codeBlockingSubdivisions do not correspond from one country to another.

Walk two trees to the end

Take these two lines and read them from the bottom up: the national line, then the subheading, then the heading, then the chapter notes. That is the reverse of search order, and it is the order that best reveals what the national extension actually added.

8517130000Open the tariff record 8471300000Open the tariff record

What four digits are worth

National line A2.5%

Same six-digit subheading

National line B17.5%

A gap of 15 points

Illustrative gap between two national lines drawn from the same six-digit subheading. Real rates depend on your line and its date.

Two articles sharing their first six digits can therefore bear very different duties. That is exactly why a six-digit code allows neither costing a transaction nor comparing two suppliers on landed cost.

InputFormulaResult
Declarations over 12 monthsBADR extract30 lines
Average customs valueTeaching assumptionMAD 100,000
Rate gap between lines17.5% − 2.5%15 points
Duty exposure30 × 100,000 × 15%MAD 450,000

From international candidate to declarable line

  1. 01

    Fix the six-digit subheading

    With the section and chapter notes and general rules 1 to 5. At this stage the reasoning is identical in every signatory country.

  2. 02

    Open that subheading in the Moroccan tariff

    Not in a foreign database. The number of national subdivisions and their criteria are specific to Morocco.

  3. 03

    Apply GIR 6 at national level

    Subdivisions are compared only with each other, at the same level. A ten-digit line is not compared with an eight-digit one.

  4. 04

    Record the supplementary unit

    It is carried by the line, it is mandatory at data entry, and it causes a large share of technical rejections.

  5. 05

    Record the edition consulted

    The code, the consultation date and the tariff version. A national line can be created, split or deleted without the first six digits moving.

Statistics are not read at the same level

Moroccan foreign-trade data is published at a level of detail that can go beyond six digits, but any international comparison has to come back down to six. The national series appear in Office des Changes statistics; series comparable between countries are available through UN Comtrade and the WTO tariff gateway.

Recheck codes at every edition change

An HS revision changes the first six digits of some lines; a national tariff overhaul can change the last four without touching the first six. The two events are independent and must be monitored separately. After each change, replay the decision on the articles concerned rather than applying the correspondence table unreviewed: a one-to-many correspondence forces a choice, and that choice is a classification decision in its own right.

Related articles