Selling online in Morocco is not just about building a store and waiting for orders to roll in. Behind every transaction lies a precise tax framework — VAT, income or corporate tax, customs obligations, compliant invoicing — that the Direction Générale des Impôts (DGI) enforces rigorously. In 2025, tax audits targeting e-commerce operations increased by 35% according to the DGI's annual activity report. The 2026 Finance Law has further tightened reporting obligations for online sellers.
This guide covers the full scope of e-commerce taxation in Morocco: VAT on online sales, choosing the right tax regime, customs duties for cross-border commerce, electronic invoicing, and compliance tools. Whether you operate as an auto-entrepreneur, SARL, or SA, you will find the concrete rules you need to stay compliant and avoid penalties.
VAT on E-commerce in Morocco: What You Need to Know
Value-added tax is the most immediate tax concern for any Moroccan online seller. Its application to e-commerce follows the same principles as physical retail, with a few specifics related to the digital nature of transactions.
Applicable VAT rates for e-commerce:
- 20% (standard rate): applies to the majority of goods and services sold online — clothing, electronics, cosmetics, digital services, paid online courses.
- 14%: goods transport, electrical energy, certain service provisions.
- 10%: tourist accommodation, certain cooking oils, table salt, processed rice, pasta.
- 7%: water, pharmaceutical products, school supplies, powdered milk.
- Exempt: basic necessities (bread, flour, fresh milk, sugar), books and newspapers, unprocessed agricultural products.
When must you register for VAT? Any business whose annual turnover exceeds 500,000 MAD for commercial and industrial activities, or 200,000 MAD for service provisions, must register for VAT. Below these thresholds, registration is optional but can be advantageous for recovering VAT on purchases.
VAT on digital services: since the 2024 Finance Law, foreign digital platforms providing services to Moroccan consumers (streaming, SaaS, online advertising) are theoretically subject to Moroccan VAT at 20%. The 2026 Finance Law strengthened this mechanism by requiring marketplaces to act as VAT collectors for third-party sellers operating on their platform.
Filing and payment: VAT is filed monthly if your annual turnover exceeds 1,000,000 MAD, quarterly below that threshold. All filings must be submitted through the DGI's SIMPL portal (Système Intégré de Taxation en Ligne). Late filing incurs a 5% surcharge in the first month, plus 0.50% for each additional month of delay.
Auto-entrepreneur Regime: Advantages and Limitations for E-commerce
The auto-entrepreneur status attracts many online sellers in Morocco with its simplicity. Created by Law 114-13, it offers a streamlined tax framework — but with strict turnover caps.
Turnover thresholds:
- 500,000 MAD/year for commercial, industrial, and artisanal activities (selling physical products online).
- 200,000 MAD/year for service provisions (digital consulting, design, development).
Simplified taxation: the auto-entrepreneur pays a flat tax on turnover: 1% for commercial activities, 2% for service provisions. No VAT to collect or file as long as you remain within thresholds. No formal bookkeeping required — a simple revenue log is sufficient.
Limitations for e-commerce: once your online store exceeds the threshold, you automatically transition to the professional income tax (IR) regime. This shift requires proper bookkeeping, VAT registration, and significantly heavier reporting obligations. For a growing store, anticipating this transition is essential — which is why structuring your e-commerce project from the start matters so much.
Practical advice: if you are approaching 400,000 MAD in annual turnover from product sales, consider forming a SARL proactively. A planned transition is far smoother than a forced one, and you will be able to deduct your expenses (hosting, advertising, logistics) from your taxable base.
SARL and SA: Full Tax Obligations
Most structured e-commerce businesses in Morocco operate as a SARL (Société à Responsabilité Limitée). Tax obligations are more substantial but also offer real advantages.
Corporate tax (IS):
The progressive IS rate schedule in Morocco for 2026 is as follows:
- 10% on net profit up to 300,000 MAD.
- 20% from 300,001 to 1,000,000 MAD.
- 31% above 1,000,000 MAD.
Industrial companies with net profit exceeding 100 million MAD face a 35% rate. Exporting companies benefit from a full IS exemption on export revenue for the first 5 years, then a reduced 20% rate — a significant advantage for cross-border e-commerce.
Reporting obligations:
- VAT: monthly or quarterly filing through SIMPL.
- IS: four quarterly provisional installments (each equal to 25% of the previous year's IS), plus an annual return within 3 months of fiscal year-end.
- Professional tax (ex-patente): due annually, calculated on the rental value of business premises. Full exemption for the first 5 years for new businesses.
- Minimum contribution: even without profit, a SARL must pay a minimum contribution of 0.45% of turnover (floor of 3,000 MAD). This is a point frequently overlooked by e-commerce entrepreneurs.
Deductible expenses: unlike the auto-entrepreneur, a SARL can deduct all professional expenses — web hosting, payment gateway commissions, Google/Meta advertising costs, shipping fees, salaries, software subscriptions. This deductibility makes the SARL regime more advantageous once expenses exceed 30 to 40% of turnover.
Cross-border E-commerce: Customs and Office des Changes
Selling internationally from Morocco — or importing products to resell online — means navigating an additional regulatory layer.
Import customs duties:
If you import products for online resale, you are subject to customs duties that vary by product tariff classification. Common rates range from 2.5% to 40% of the customs value. On top of that, import VAT applies (20% in most cases) along with a para-fiscal import tax (0.25%).
Dropshipping and direct imports: dropshipping sellers are often surprised to discover that customs duties apply to the end recipient — meaning your Moroccan customer. If your customer refuses to pay customs charges upon delivery, it is your reputation and margins that suffer. The solution: factor estimated customs duties into your selling price and handle declarations yourself through a customs broker.
Office des Changes: any operation involving foreign currency must be reported to the Office des Changes. This covers payments received in EUR, USD, or other currencies for export sales, transfers to foreign suppliers, and platform fees paid in foreign currency (Shopify, Stripe, etc.). Non-compliance can result in fines up to 6 times the amount of the infraction, or even confiscation of the funds.
Advantageous customs regimes: the temporary admission regime allows you to import raw materials duty-free if the finished product is re-exported. The free zone regime offers complete exemption from customs duties and IS for the first 5 years. These regimes are relevant for e-commerce operators who process products in Morocco before selling them internationally.
To effectively structure your e-commerce operations — from platform choice to tax compliance — explore our complete e-commerce solution.
Electronic Invoicing: Requirements and DGI Compliance
Invoicing is the backbone of tax compliance. In Morocco, invoicing requirements apply fully to e-commerce.
Mandatory information on an e-commerce invoice:
- Tax identifier (IF), professional tax (TP), ICE (Identifiant Commun de l'Entreprise).
- Name or business name of both seller and buyer.
- Invoice date and sequential numbering without gaps.
- Description of goods or services, quantity, unit price excluding tax.
- VAT rate and amount, total amount including tax.
- Payment terms.
E-invoicing in Morocco: the DGI is actively pushing toward invoice dematerialization. The SIMPL portal already supports electronic invoice filing, and the 2026 Finance Law extended the electronic invoicing mandate to businesses with turnover exceeding 2 million MAD. For e-commerce operators, this means every sale must generate a compliant invoice — requiring an automated invoicing system integrated with your sales platform.
Record retention: invoices must be retained for 10 years in paper or digital format. Digital format is accepted provided the integrity, readability, and traceability of documents is guaranteed. A simple PDF file is not sufficient — the DGI requires an archival system that prevents any subsequent modification.
Automating your accounting and invoicing has become essential for online stores processing dozens or hundreds of orders daily. Tools like Sage Maroc or Odoo with Moroccan localization automatically generate compliant invoices for every sale.
Tax Management Tools Adapted to Morocco
Choosing the right accounting and tax software is critical for compliance.
Sage Maroc: the standard for Moroccan SMEs and accounting firms. Natively handles the Moroccan Chart of Accounts (Plan Comptable Marocain), VAT filings, IS, and professional tax. Direct integration with SIMPL. Cost: starting at 15,000 MAD/year.
Odoo: modular open-source solution with full Moroccan localization. Key advantage: native integration between the online store (eCommerce module), accounting, inventory, and invoicing. Every sale automatically generates the corresponding accounting entry and compliant invoice. Cost: free for Community edition, starting at 8,000 MAD/user/year for Enterprise.
QuickBooks: suited for smaller businesses. Handles invoicing and bank reconciliation but requires adaptations for full Moroccan compliance (Chart of Accounts, multi-rate VAT, SIMPL filings).
Automation solutions: for high-volume stores, integrating automation workflows between your e-commerce platform and accounting software eliminates manual data entry and reduces errors. Discover how automation can transform your daily operations.
Common Mistakes and Penalties
Tax errors in Moroccan e-commerce are frequent and costly. Here are the most common pitfalls.
Mistake 1: not charging VAT because you believe online sales are exempt. Many online sellers assume that internet sales escape VAT. This is false. The same rules apply as in physical retail. Penalty: VAT recall plus a 15% surcharge for underreporting.
Mistake 2: confusing turnover with profit for IS calculation. IS is calculated on net taxable profit, not turnover. Conversely, the minimum contribution is calculated on turnover. The two are distinct.
Mistake 3: ignoring Office des Changes obligations. Receiving payments in foreign currency via a Payoneer or Stripe account without repatriating them through a Moroccan bank is an infraction. Currency repatriation is mandatory within 30 days.
Mistake 4: not keeping proof of delivery for exports. To justify VAT exemption on exports, you must retain proof that goods left Moroccan territory. Without these documents, the DGI can reclassify your sales as domestic and demand VAT payment.
Mistake 5: not declaring marketplace revenue. Selling on Jumia, Amazon, or Etsy does not exempt you from declaring that revenue to the DGI. Even income earned abroad is taxable in Morocco if your tax residence is Moroccan.
To navigate this fiscal complexity while staying focused on growth, a well-planned digital transformation is your strongest asset — it integrates tax compliance into your processes from day one.
Related Resources
Comparing providers? Check out our detailed comparison:
FAQ — E-commerce Tax in Morocco
Does an auto-entrepreneur need to collect VAT on online sales? No, as long as their turnover stays below the thresholds (500,000 MAD for commerce, 200,000 MAD for services). However, they also cannot deduct VAT on their purchases. Once thresholds are exceeded, the transition to the standard regime is automatic.
How do I file VAT on sales made through Shopify or WooCommerce? The platform does not file VAT on your behalf. You must calculate VAT collected on each sale, file monthly or quarterly through the DGI's SIMPL portal, and remit the amount due. Accounting software integrated with your store automates this calculation.
What customs duties apply to dropshipping in Morocco? Customs duties depend on the tariff classification of the imported product (2.5% to 40%). They are payable upon receipt of the parcel in Morocco, plus 20% import VAT. In dropshipping, the recipient pays — which is why factoring these costs into your selling price is critical.
Is electronic invoicing mandatory for Moroccan e-commerce businesses? The 2026 Finance Law makes electronic invoicing mandatory for businesses with turnover exceeding 2 million MAD. Below that threshold, paper invoicing remains accepted, but the DGI strongly encourages the digital transition and plans to extend the requirement progressively.
What penalties does an e-commerce business face for tax non-compliance? Penalties vary by infraction: 5% surcharge plus 0.50%/month for late filing, 15% for underreporting, and up to 100% of the evaded tax in cases of proven fraud. The Office des Changes can impose fines of up to 6 times the amount for currency exchange violations.
Launching or scaling an online store in Morocco and want to get the tax side right from day one? Contact the ClaroDigi team for tailored support — from tax structuring to accounting automation.
