Guide · Grid Code
Mexico’s Grid Code: what it requires of your plant and how to comply
The Grid Code (Código de Red) is the technical regulation that plants connected to Mexico’s grid at medium or high voltage must meet. It requires staying connected through the grid’s voltage and frequency variations, and meeting limits for power factor and power quality. Since April 2026, the minimum power factor has been 0.97 for plants of 1 MW or more.
Reviewed by Mario René Córdova de la Peña, electrical engineer and CTO of ENEGRIN, in November 2026
The Grid Code in one minute
- It applies to every plant connected at medium or high voltage. Low voltage is outside it.
- Which requirements apply to you depends on your voltage and your contracted demand.
- With 1 MW or more at medium voltage, or at high voltage: power factor of 0.97 to 1.0 at least 95% of the month, plus limits on harmonics, flicker and unbalance.
- With less than 1 MW at medium voltage, the Grid Code power factor does not apply. Your tariff’s surcharge does.
- Non-compliance carries fines under the Electricity Sector Law.
In this guide
To apply this to your plant, an ENEGRIN engineer replies the same business day.
Talk to an engineer1. What is the Grid Code?
It is the set of technical rules of Mexico’s National Electric System. The current version is resolution RES/550/2021 of the Energy Regulatory Commission (CRE), published in the Official Gazette on December 31, 2021.
For an industrial plant, the part that matters is the Regulatory Manual of Technical Requirements for the Connection of Load Centers. A load center is your plant as the grid sees it: the point where you receive energy.
The CRE no longer exists. Under the 2025 Electricity Sector Law, reliability, quality and continuity regulation is issued and supervised by the National Energy Commission (CNE).
2. Who does it apply to?
To every plant connected, or seeking connection, at medium or high voltage. Which requirements apply to you depends on your voltage and your contracted demand.
What does the Grid Code require of you?
Choose how your plant is connected.
Connection voltage
Contracted demand
This manual does not apply to you
The manual states that plants connected at low voltage are outside its requirements.
Five requirements apply, with power quality limited
Voltage, frequency, short circuit and protection apply in full. Of the power quality limits, only voltage and current unbalance apply to you.
The Grid Code power factor does not apply to you. Your tariff’s does: CFE adds a surcharge to the bill when your power factor falls below 90%.
All of them apply, including the 0.97 power factor
Voltage, frequency, short circuit, protection, power factor and full power quality: harmonics, flicker and unbalance.
Your power factor must be between 0.97 lagging and 1.0 at least 95% of the time each month.
All of them apply, including the 0.97 power factor
Voltage, frequency, short circuit, protection, power factor and full power quality: harmonics, flicker and unbalance.
At high voltage the 0.97 power factor applies regardless of your contracted demand.
The control requirement applies only to controllable demand resources. The information exchange requirement applies as set out in the market’s information technology manual.
3. The requirements, one by one
| Requirement | What it requires |
|---|---|
| Voltage | Stay connected continuously while voltage is between 95% and 105% of nominal, and withstand 90% to 110% for up to 20 minutes. |
| Frequency | Stay connected continuously between 59.0 and 61.0 Hz, and from 58.0 to 62.5 Hz for 30 minutes. Your connections and load changes must not move frequency by more than 0.1 Hz. |
| Short circuit | Set your protection settings to the short-circuit levels reported by CENACE at high voltage or by the distributor at medium voltage. |
| Power factor | Between 0.97 lagging and 1.0, at least 95% of the time each month. Applies with 1 MW or more at medium voltage, and at high voltage. |
| Protection | Have protection schemes at the connection point, coordinated with the grid’s. The transmission operator or the distributor verifies them. |
| Control | Adapt your systems to receive CENACE’s dispatch instructions. Only for controllable demand resources. |
| Information exchange | Real-time telemetry and protocols, as set out in the information technology manual. |
| Power quality | Stay within the limits for current harmonics, flicker and unbalance. |
| Simulation models | Deliver models of your installation when CENACE requests them. |
4. Power factor: 0.97 since April 2026
Power factor shows how much of the energy your plant draws is turned into useful work. Motors, compressors and transformers also draw reactive power, which does no work and lowers the power factor.
- Between 0.97 lagging and 1.0.
- Measured every five minutes.
- Met at least 95% of the time each month.
- In force since April 9, 2026. Until April 8 the minimum was 0.95.
Separately, there is the tariff charge. CFE compares your monthly power factor with a reference: 90% for most services, and 97% for those with 1 MW or more at medium voltage or connected at high voltage. Below the reference there is a surcharge. Above it there is a credit.
Surcharge or credit on your bill?
Pick your case and move the slider to your power factor for the month.
Below 97% there is a surcharge. At 97% or above there is a credit.
A surcharge of 0.8% on your bill subtotal.
On the example bill that would be MXN 34,320 more that month.
The example bill is the one from the tariff guides: January 2026, GDMTH tariff, subtotal of MXN 4,289,969.64. That month it earned a credit, because the reference was 95%. With the 97% reference it would get this surcharge.
How CFE calculates the surcharge and the credit · How many kVAr your capacitor bank needs
5. Power quality: harmonics, flicker and unbalance
It applies in full at high voltage and at medium voltage with 1 MW or more. It is assessed with one week of records: the 95th percentile for harmonics, flicker and voltage unbalance, and the weekly average for current unbalance.
| Phenomenon | What it is | Limit |
|---|---|---|
| Current harmonics | Distortion of the current caused by drives, rectifiers and furnaces. | Depends on your voltage and your short-circuit ratio. For example, 5% total demand distortion at 69 kV or below with a ratio under 20. |
| Flicker | Rapid voltage fluctuations, noticeable in lighting. | Short-term index below 1 and long-term index below 0.8. |
| Voltage unbalance | Difference between the voltages of the three phases. | 2% maximum. |
| Current unbalance | Difference between the currents of the three phases. | 15% maximum. |
With less than 1 MW at medium voltage, only the two unbalance limits apply.
6. What happens if you do not comply?
The manual refers to the penalties for non-compliance. Today the fines are in article 184 of the Electricity Sector Law:
- 128,000 to 514,000 UMA (Mexico’s reference unit for fines, updated every year) for breaching the quality, reliability, continuity and safety provisions of the National Electric System.
- 10% of the previous year’s gross revenue when the breach is serious in the judgment of the Energy Ministry.
- A repeat offense doubles the fine.
The regulator can inspect your installation directly or through inspection units, and can rely on CENACE, the transmission operator and the distributor.
7. How to comply, step by step
- Confirm your connection voltage and your contracted demand. They are on your bill and define which requirements apply.
- Measure. A power quality study at your connection point, with at least one week of records, shows where you stand on power factor, harmonics, flicker and unbalance.
- Compare each measurement with its limit. It is normal to fail one or two points and meet the rest.
- Fix what fails. Power factor is corrected with a capacitor bank or with the inverter of a BESS. Harmonics, with filters. Unbalance, by spreading loads across phases.
- Check your protection settings against the short-circuit levels published by CENACE or the distributor, and coordinate them with the grid’s.
- Keep the evidence. If you need time to comply, the manual provides for filing a work plan with the regulator.
8. How a BESS helps you comply
The BESS solution corrects the power factor with the capacitors that come with it, so it helps sustain the one the Grid Code requires. On the bill, a surcharge is reduced or becomes a credit, and an existing credit grows.
At ENEGRIN we measure how much of the savings comes from this, and you see it separately in your reconciliation.
9. Frequently asked questions
Who does the Grid Code apply to?
To every plant connected, or seeking connection, at medium or high voltage. Low-voltage plants are outside the manual.
What power factor does the Grid Code require?
Between 0.97 lagging and 1.0, at least 95% of the time each month, measured every five minutes. It applies at medium voltage with a contracted demand of 1 MW or more, and at high voltage. Until April 8, 2026 the minimum was 0.95.
Are the Grid Code and CFE’s power factor surcharge the same thing?
No. The Grid Code is a technical obligation supervised by the regulator, with fines. The surcharge is a tariff charge that appears on your bill. You can have a credit on the bill and still breach another Grid Code requirement.
How large is the fine for breaching the Grid Code?
The Electricity Sector Law sets 128,000 to 514,000 UMA (Mexico’s reference unit for fines, updated every year) for breaching the quality, reliability, continuity and safety provisions. If the breach is serious in the judgment of the Energy Ministry, the fine is 10% of the previous year’s gross revenue.
Who supervises compliance?
The National Energy Commission (CNE), which took over the functions of the CRE. It can rely on CENACE, the transmission operator and the distributor, and can inspect directly or through inspection units.
What is Grid Code 2.0?
It is the common name for the current version, resolution RES/550/2021, published on December 31, 2021. It replaced the 2016 version.
More on BESS
- BESS in MexicoWhat they solve, what the regulation says and how the contracts work
- What is a BESSIts parts and what it does at each hour of the day
- Peak shavingCutting the demand peak, with a calculator
- Capacitor bankWhat it is for and how to size it
- Backup during outagesBESS, diesel generator or UPS
- What a BESS costsThe contracting models and what you pay in each
- How to choose a providerWhat to ask for in writing
- Permits for a BESSWhat the storage regulation requires
Send us your GDMTH bill and we’ll tell you which charge can be reduced.
An ENEGRIN engineer reviews it and replies the same business day. If you would rather estimate the savings of a BESS yourself, use the Ollin Simulator: it asks you to create an account with your company email.
Sources
- CRE, Grid Code (Código de Red), RES/550/2021, Official Gazette (DOF), December 31, 2021: Regulatory Manual of Technical Requirements for the Connection of Load Centers, pages 1077 to 1084: scope, table of applicable requirements and sections 2.1 to 2.9.
- Electricity Sector Law (Ley del Sector Eléctrico), Official Gazette (DOF), March 18, 2025, current text from the Chamber of Deputies: article 153 (the CNE issues and supervises the regulation) and article 184 (fines).
- CNE, Resolution (Acuerdo) CT/11.SE/8-2025, final basic supply tariffs for 2026, Official Gazette (DOF): section 5.5: power factor surcharge and credit in the tariff.