
For three years, this law existed only on paper.
I remember the conversations on site — engineers, technical directors, EPC contractors — all asking the same question whenever the topic came up: “When is this actually going to apply?” Nobody had a real answer. The law was passed. The decree was delayed. The texts kept getting postponed.
On June 9, 2026, that uncertainty ended.
Morocco’s implementing decree for Law 82-21 on electricity self-production is now in force. For the first time, Businesses operating solar photovoltaic installations in Morocco are backed by a structured legal and regulatory framework governing the surplus energy their systems generate.
This is not a minor regulatory update. For anyone running — or planning — an industrial solar installation in Morocco, this changes the financial model. Here is what it actually means, without the press release language.
Disclosure: This article contains affiliate links. If you purchase through these links, I may earn a small commission at no extra cost to you. I only recommend technical resources that I consider genuinely useful for industrial solar professionals working in Africa and the MENA region.
What Law 82-21 Actually Allows
The implementing decree, published after the regulator ANRE released four key decisions between January and February 2026, establishes the operational framework that was missing since the law was first adopted three years ago.
In practical terms, self-producers — businesses and individuals operating renewable energy installations for their own consumption — can now inject and sell surplus electricity into the public grid, up to a strict limit of 20% of their annual production.
For an industrial facility, this means a solar PV system no longer needs to be sized exclusively for self-consumption with zero injection tolerance. There is now a defined, legal channel for excess production — within that 20% ceiling.
The decree also simplifies the administrative process considerably. Three distinct procedures now apply depending on installation size and grid connection level:
- A declaration regime for small, off-grid installations
- A connection agreement for systems between 1 kW and 5 MW connecting to the distribution network
- A formal authorization for installations above 5 MW connecting to medium- or high-voltage networks
For most industrial C&I solar projects in Morocco — typically in the 1 to 10 MWp range — this means moving from a lengthy concession-style process to a more structured, predictable connection pathway.
The Numbers That Actually Matter
Here are the figures that determine whether this changes your project’s economics — and by how much.
The surplus cap: 20% of annual production
This is the number every developer and technical director needs to internalize. You cannot sell more than 20% of what your installation generates annually back to the grid. The remaining 80% must be self-consumed or curtailed. This caps the value of grid injection as a revenue stream — it is a complement to self-consumption, not a replacement for it.
Compensation rates for injected surplus
The framework sets compensation at approximately MAD 0.21 per kWh during peak hours and MAD 0.18 per kWh during other periods — roughly 0.021 to 0.023 USD per kWh at current exchange rates. These are modest rates. They do not come close to retail electricity tariffs. The financial logic of Law 82-21 is not “sell your surplus for a strong return.” It is “stop losing value on production you would otherwise have to curtail.”
What this looks like on a real installation
To put this in perspective: on a 2 MWp industrial installation generating approximately 3.5 GWh annually, a 20% injection allowance represents up to 700,000 kWh eligible for grid sale. At the published peak rate of 0.023 USD per kWh, that translates to a maximum of approximately 16,000 USD per year — a modest but real recovery on production that would otherwise have been curtailed entirely.
That figure matters more than it first appears. On industrial sites with variable consumption patterns — weekends, planned shutdowns, seasonal production cycles — curtailment losses of 3% to 6% of annual yield are not unusual. For a 2 MWp system, that represents 105,000 to 210,000 kWh per year previously lost outright, with zero financial recovery. Law 82-21 does not eliminate that loss, but it now gives a portion of it a legal and monetizable destination.
Mandatory bidirectional metering
Every installation operating under this framework requires a bidirectional meter, installed by ONEE or the authorized distributor, to measure both injected production and consumed grid electricity. This is the technical foundation of the entire net billing system — and a cost line that needs to be included in any updated financial model.
Transit fees apply
Energy that transits through the ONEE grid — even self-generated energy moved between sites of the same operator — is subject to a transit fee. This detail matters for facilities with multiple buildings or sites that previously assumed free internal transfer of self-generated power.
What This Changes for Sizing Decisions
This is where the law has the most direct operational impact — and where most coverage of this decree stops short of giving practical guidance.
For years, the safe and conservative approach to sizing an industrial solar PV system in Morocco was deliberate undersizing relative to consumption, to avoid generating surplus that had no legal outlet and effectively no value. Curtailment — wasting production rather than risk regulatory ambiguity — was a real and quietly accepted inefficiency on many sites.
With a defined 20% injection allowance now in place, the calculus shifts. A facility can size its installation closer to — or modestly above — its baseline consumption, knowing that a portion of excess production now has a legal, monetizable destination rather than being curtailed entirely.
One word of caution is necessary here. Do not let a 20% injection allowance become the justification for oversizing a system beyond what your own consumption growth realistically supports. The compensation rate remains too low to make injection a standalone investment driver. Size for your consumption first, and treat injection capacity as a safety margin — not a business case in itself.
This matters considerably for facilities with seasonal or variable consumption patterns, where production sometimes outpaces demand for parts of the year. The margin for error in sizing decisions has widened. It has not disappeared.
What Remains Genuinely Uncertain
Honesty matters more than optimism here, and there are real open questions that this decree does not fully resolve.
Grid connection processes, metering arrangements, and how ONEE administers the surplus purchase mechanism in practice are still being clarified. The regulatory direction is clear. The operational execution — how quickly connection requests are processed, how disputes over metering are handled, how consistently the published tariffs are applied across regions — is something the market will only learn through experience over the coming months.
A practical recommendation follows directly from this: until ONEE’s processing timelines become predictable in practice, budget for a connection approval delay of several months in your project planning — not weeks. Early adopters of any new regulatory mechanism typically absorb the administrative learning curve, and industrial energy planning should account for that reality rather than assume best-case timelines.
There is also a pending decision that matters for larger industrial users: a review of whether producers may eventually inject more than the current 20% ceiling has been postponed, not resolved. For now, 20% is the firm number to plan around. Whether it expands later remains an open question worth monitoring rather than assuming.
For a Solar Carbon Program-registered installation specifically, the rules differ: surplus sales are not permitted at all under that program, and full self-consumption is required. Anyone considering that pathway needs to factor this distinction in before finalizing project structure.
The Bigger Picture — What This Law Does and Does Not Fix
This connects directly to a pattern documented in earlier field analysis on this blog: feasibility studies in Morocco systematically undermodel real-world losses — soiling, thermal derating, and historically, curtailment.
Law 82-21 closes one of those three gaps. It gives previously wasted surplus production a legal and financial destination, recovering part of a loss that operators have absorbed silently for years.
The other two gaps — soiling losses running well above standard assumptions, and inverter thermal derating during summer months — remain entirely on the operator’s shoulders. No regulatory decree changes the physics of dust accumulation or inverter temperature thresholds. Those losses are addressed through supervision, maintenance discipline, and accurate feasibility modeling — not through legislation.
The lesson for any technical director updating their financial model after June 9, 2026: factor in the new injection revenue, but do not let it distract from the operational losses that were never about regulation in the first place.
What This Means in Practice for an Operating Facility
For an industrial site already running solar, the practical action items are straightforward.
Review your current sizing against your actual consumption pattern. If your installation has historically curtailed production during low-demand periods, model what 20% injection capacity is now worth to you under the published compensation rates. In most cases, the value is real but modest — a few thousand to several thousand dollars annually on a multi-megawatt system, not a transformative revenue stream.
Budget for the bidirectional metering requirement and confirm with ONEE or your distributor what installation and ongoing costs apply.
If you are in the planning phase for a new installation, this is the moment to revisit your sizing assumptions with your EPC or technical advisor — while keeping the oversizing caution above firmly in mind.
And if your facility operates under any carbon program framework, verify whether the full self-consumption requirement applies to you before assuming the injection pathway is available.
Three years of waiting ended with a decree that is more modest than transformative — and that is precisely the honest way to describe it.
Law 82-21 does not turn solar surplus into a significant revenue stream. The compensation rates are too conservative for that. What it does is remove a genuine inefficiency that has quietly existed on industrial solar sites across Morocco for years: production with no legal destination, curtailed or wasted by default.
For technical directors and project developers, the real value of this decree is not in the 20% injection cap itself. It is in the certainty it finally provides — a defined framework to size projects against, after three years of planning around an unresolved legal gray zone.
The execution details will become clearer over the coming months, as the first wave of facilities works through connection requests and metering installations under the new framework. For now, the direction is set, the numbers are published, and the planning conversation that industrial energy teams across Morocco have been postponing can finally happen with real data instead of speculation.
For engineers and project developers looking to navigate the commercial and financial realities under this new framework, Solar Photovoltaic Projects in the Mainstream Power Market by Philip Wolfe offers an invaluable reference. This book provides a thorough, real-world treatment of how commercial and industrial (C&I) solar assets are planned, sized, and integrated into modern grids. It serves as an excellent practical guide to help developers evaluate exactly how shifting regulatory rules—like Morocco’s new surplus limits—impact overall project economics and long-term asset bankability
Publié par :
Solar PV MENA Expert
Looking for verified data?
The field insights behind this article are fully documented in the MENA Industrial Solar Data Guide. Get access to real project costs, actual KPIs, and genuine O&M benchmarks from a live industrial installation in the MENA region.
👉📘 75 pages of pure field data. Zero simulations.
👉 Get the Guide — $29 USD
Disclosure: This article contains affiliate links. If you purchase through these links, I may earn a small commission at no extra cost to you. I only recommend technical resources that I consider genuinely useful for industrial solar professionals working in Africa and the MENA region.