Definition G

Grid Code

The technical rules and standards that govern how solar PV systems connect to and interact with the electrical grid — specifying voltage and frequency limits, power quality requirements, anti-islanding behavior, reactive power capability, and ride-through requirements that inverters must meet for utility approval.

Updated Mar 2026 5 min read
Keyur Rakholiya

Written by

Keyur Rakholiya

CEO & Co-Founder · SurgePV

Rainer Neumann

Edited by

Rainer Neumann

Content Head · SurgePV

Key Takeaways

  • A grid code defines the technical requirements a solar inverter must meet before a utility will approve grid connection
  • IEEE 1547-2018 is the primary grid code standard in the U.S. and now mandates smart inverter functions like volt-VAR and frequency ride-through
  • Grid codes vary by country — IEC 61727 (international), VDE-AR-N 4105 (Germany), and AS/NZS 4777 (Australia) each impose different voltage, frequency, and power quality limits
  • Solar inverters must maintain Total Harmonic Distortion (THD) below 5% per IEEE 519 to meet power quality grid code requirements
  • Non-compliant inverters will be rejected during interconnection review, delaying project commissioning and revenue
  • Modern grid codes increasingly require inverters to support the grid actively through reactive power injection and fault ride-through rather than simply disconnecting

What Is a Grid Code?

A grid code is the set of technical rules and standards that define how a solar PV system must behave when connected to the electrical grid. Grid codes specify voltage and frequency operating ranges, power quality thresholds, anti-islanding requirements, reactive power capabilities, and fault ride-through behavior. Every solar inverter must comply with the applicable grid code before the utility will approve interconnection.

Grid codes exist because the electrical grid is a shared resource. When thousands of distributed solar systems feed power into the same network, each one affects grid voltage and frequency. Without standardized rules, uncoordinated inverter behavior could cause voltage fluctuations, frequency instability, or unsafe conditions during faults.

A solar inverter grid code is not a suggestion — it is a mandatory technical specification. Systems that fail grid code compliance testing do not get permission to operate. Designers who understand grid code requirements avoid costly redesigns and interconnection delays.

The term “grid code solar” refers specifically to the subset of grid code requirements that apply to photovoltaic systems and their inverters. These requirements have become significantly more demanding since 2018, when IEEE 1547 was revised to require active grid support functions from distributed energy resources.

Types of Grid Code Standards

Grid code standards vary by country and jurisdiction. The four most widely referenced standards for solar PV interconnection cover the U.S., international, German, and Australian markets.

United States

IEEE 1547-2018

The primary U.S. standard for interconnecting distributed energy resources with the grid. IEEE 1547-2018 replaced the original 2003 version with major updates: mandatory voltage regulation (volt-VAR, volt-watt), frequency ride-through, and configurable trip settings. All new grid-tied solar inverters in the U.S. must comply. Certification is verified through UL 1741 SA testing.

International

IEC 61727

The international standard for utility-interactive PV systems. IEC 61727 defines power quality requirements including harmonic limits, DC injection limits, voltage and frequency operating ranges, and anti-islanding detection. Widely adopted across Asia, the Middle East, and parts of Africa as the baseline grid code for solar installations. Often supplemented by national amendments.

Germany

VDE-AR-N 4105

Germany’s grid connection standard for low-voltage distributed generation. VDE-AR-N 4105 requires active power curtailment at 50.2 Hz, reactive power capability, and certified anti-islanding protection. The standard was updated after the 50.2 Hz problem — where older inverters all disconnected simultaneously at exactly 50.2 Hz, threatening grid stability across Europe.

Australia

AS/NZS 4777

The Australian and New Zealand standard for grid-connected inverter systems. AS/NZS 4777.2:2020 introduced demand response modes (DRM), volt-VAR and volt-watt response curves, and tighter power quality limits. Australia’s high rooftop solar penetration makes these grid support functions critical for preventing voltage rise on low-voltage feeders.

Grid Code Requirements Comparison

The following table summarizes the key grid code requirements that solar inverters must meet, what each requirement controls, and the specific values defined in IEEE 1547-2018.

Grid Code RequirementWhat It SpecifiesWhy It MattersIEEE 1547-2018 Value
Voltage operating rangeAcceptable voltage window for continued operationPrevents inverter from destabilizing local voltage0.88–1.10 per unit (continuous)
Frequency operating rangeAcceptable frequency window for continued operationMaintains grid frequency stability during disturbances57.0–61.8 Hz (mandatory ride-through)
Voltage ride-throughInverter must stay connected during brief voltage sagsPrevents mass disconnection that worsens grid eventsMust ride through per Category III curves
Frequency ride-throughInverter must stay connected during frequency excursionsAvoids cascade tripping that can cause blackoutsMust ride through 57.0–61.8 Hz for defined durations
Volt-VAR responseInverter adjusts reactive power based on local voltageRegulates voltage on the feeder without utility interventionDefault curve: absorb VARs above 1.03 pu, inject below 0.97 pu
Anti-islandingInverter disconnects when grid power is lostProtects utility workers from backfeed during outagesCease to energize within 2 seconds
Power quality (THD)Limits harmonic distortion injected into the gridPrevents equipment damage and interferenceTotal THD below 5% per IEEE 519
DC injectionMaximum DC current allowed into AC gridPrevents transformer saturation and grid equipment damageLess than 0.5% of rated output current
Reconnection delayMinimum wait time after grid restorationPrevents rapid on/off cycling during unstable conditions300 seconds (5 minutes)
Ramp rateMaximum rate of power output changeSmooths power transitions to avoid voltage spikesConfigurable, default 100% per minute
Power Quality Compliance
Total Harmonic Distortion (THD) must be under 5% per IEEE 519

Individual odd harmonics (3rd through 9th) must each be below 4%. Even harmonics must be below 1%. The 5% THD limit applies to the total current waveform at the point of common coupling (PCC).

IEEE 1547-2018: A Major Grid Code Update

The 2018 revision of IEEE 1547 was the most significant update to U.S. solar grid code requirements in 15 years. The original 2003 standard treated solar inverters as passive devices — connect, export power, disconnect during faults. IEEE 1547-2018 flipped this approach entirely. Inverters must now actively support the grid through volt-VAR regulation, frequency-watt response, and mandatory fault ride-through. This means a solar inverter grid code compliant with the 2018 standard is fundamentally different from one built to the 2003 standard. Designers using solar design software must verify that specified inverters carry UL 1741 SA certification, which tests compliance with these new smart inverter functions.

How Grid Codes Affect Solar System Design

Grid code compliance is not an afterthought — it shapes equipment selection, string sizing, and inverter configuration from the start of the design process. A system that fails grid code requirements during interconnection review means redesign, resubmission, and project delays.

Inverter selection is the most direct impact. The inverter must support all grid code functions required by the local utility. In the U.S., this means IEEE 1547-2018 compliance verified through UL 1741 SA certification. In Germany, VDE-AR-N 4105 compliance is mandatory. Selecting a non-compliant inverter forces a complete equipment swap later in the project.

Reactive power capability is now a grid code requirement in most jurisdictions. The inverter must be sized not just for real power (kW) but also for apparent power (kVA) to provide the reactive power support the grid code demands. An inverter operating at its maximum real power output may not have enough headroom for reactive power, potentially requiring a larger inverter than the array’s DC capacity alone would suggest.

String sizing and voltage limits interact with grid code voltage ride-through requirements. During a voltage swell, the inverter must continue operating up to 1.10 per unit voltage. The DC string voltage at maximum power point must remain within the inverter’s operating window even under these elevated grid voltage conditions.

When using solar design software to model systems, the software should validate that the selected inverter and string configuration meet all applicable grid code requirements automatically.

Practical Guidance

  • Always check the utility’s specific grid code requirements. While IEEE 1547-2018 is the national standard, individual utilities may impose additional or modified requirements through Rule 21 (California), SIR (New York), or their own interconnection tariffs. The grid code your project must meet depends on the utility, not just the state.
  • Verify UL 1741 SA certification for every inverter. Standard UL 1741 testing does not cover the advanced grid support functions required by IEEE 1547-2018. Only UL 1741 Supplement A (SA) tests volt-VAR, frequency-watt, and other smart inverter functions. Specify SA-certified inverters to avoid interconnection rejection.
  • Size inverters for apparent power, not just real power. Grid codes that require reactive power support mean the inverter’s kVA rating matters as much as its kW rating. An inverter providing 0.9 power factor reactive support at full output needs approximately 11% more apparent power capacity than its rated real power.
  • Use solar design software that validates grid code compliance. Manual grid code verification is error-prone. Software that automatically checks inverter certification status, voltage operating ranges, and reactive power capability against the applicable grid code saves time and prevents compliance failures.
  • Configure inverter grid code settings during commissioning. Most smart inverters ship with default settings that may not match the local utility’s specific grid code profile. Use the inverter’s commissioning interface to load the correct voltage trip points, frequency ride-through curves, and reactive power settings for the utility.
  • Document the grid code profile applied. Record which grid code settings were programmed into the inverter. Many utilities require this documentation as part of the interconnection agreement. Keep a copy in the project file for inspections.
  • Verify firmware supports the required grid code. Inverter firmware updates occasionally add support for new grid code profiles or correct compliance issues. Check the manufacturer’s release notes and update firmware before commissioning if a newer version addresses grid code compliance.
  • Test anti-islanding and reconnection delay. Open the main breaker with the system running. The inverter should cease export within 2 seconds. After restoring the breaker, the inverter should wait a full 300 seconds before reconnecting. Document both tests.
  • Explain grid code compliance as a quality indicator. Customers rarely understand grid codes, but they understand quality. Explain that the proposed inverter meets the latest grid standards, which means it will not be rejected by the utility and will operate reliably for its full warranty period.
  • Use grid code compliance to differentiate from competitors. Some installers still specify older inverters that meet only the 2003 standard. Highlighting that your designs meet IEEE 1547-2018 with SA-certified inverters positions your company as technically competent and forward-thinking.
  • Mention faster interconnection timelines. Fully grid-code-compliant applications are less likely to be kicked back by the utility for corrections. This translates to faster permission to operate (PTO) and earlier system activation for the customer.
  • Include compliance details in proposals. Solar proposal software that lists inverter certifications and grid code compliance in the customer-facing document builds credibility and reduces post-sale questions about utility approval.

Design Grid-Code-Compliant Solar Systems Automatically

SurgePV validates inverter certifications, voltage ranges, and reactive power settings against applicable grid codes in every design — so your interconnection applications pass the first time.

Book a Demo

No commitment required · 20 minutes · Live project walkthrough

Sources

  • IEEE 1547-2018 — Standard for Interconnection and Interoperability of Distributed Energy Resources with Associated Electric Power Systems Interfaces. Defines voltage/frequency operating ranges, ride-through requirements, volt-VAR response curves, and anti-islanding specifications for all grid-connected DERs. IEEE Standards
  • IEC 61727 — Photovoltaic (PV) Systems: Characteristics of the Utility Interface. International standard specifying power quality, DC injection limits, and operating ranges for grid-connected PV inverters. IEC Webstore
  • U.S. Department of Energy — Solar Energy Technologies Office grid integration research. Provides technical guidance on distributed energy resource interconnection, grid code evolution, and smart inverter deployment. DOE Solar Grid Integration

Frequently Asked Questions

What is a grid code in solar energy?

A grid code in solar energy is the set of technical standards that govern how a solar PV system connects to and interacts with the electrical grid. It specifies the voltage and frequency limits within which the inverter must operate, power quality requirements like harmonic distortion limits, anti-islanding behavior, reactive power capability, and fault ride-through specifications. In the United States, IEEE 1547-2018 is the primary grid code standard for solar installations. Inverters must be tested and certified (via UL 1741 SA) to demonstrate compliance before the utility will grant interconnection approval.

Why do solar inverters need to comply with grid codes?

Solar inverter grid code compliance is mandatory because the electrical grid is a shared infrastructure. Without standardized rules, distributed solar systems could inject harmonic distortion, cause voltage fluctuations, or create safety hazards during grid faults. Grid codes ensure that every connected inverter maintains power quality, supports grid stability through reactive power and ride-through functions, and disconnects safely during outages to protect utility workers. Non-compliant inverters will be rejected during interconnection review, blocking the system from operating.

What changed in IEEE 1547-2018 compared to the original standard?

IEEE 1547-2018 fundamentally changed how solar inverters interact with the grid. The original 2003 standard required inverters to simply disconnect during abnormal conditions. The 2018 revision requires inverters to actively support the grid through volt-VAR regulation (adjusting reactive power based on voltage), frequency-watt response (reducing output during high-frequency events), and mandatory voltage and frequency ride-through (staying connected through brief disturbances instead of tripping offline). These changes reflect the reality that solar now represents a significant share of generation capacity, and mass disconnection during grid events can make problems worse rather than better.

About the Contributors

Author
Keyur Rakholiya
Keyur Rakholiya

CEO & Co-Founder · SurgePV

Keyur Rakholiya is CEO & Co-Founder of SurgePV and Founder of Heaven Green Energy Limited, where he has delivered over 1 GW of solar projects across commercial, utility, and rooftop sectors in India. With 10+ years in the solar industry, he has managed 800+ project deliveries, evaluated 20+ solar design platforms firsthand, and led engineering teams of 50+ people.

Editor
Rainer Neumann
Rainer Neumann

Content Head · SurgePV

Rainer Neumann is Content Head at SurgePV and a solar PV engineer with 10+ years of experience designing commercial and utility-scale systems across Europe and MENA. He has delivered 500+ installations, tested 15+ solar design software platforms firsthand, and specialises in shading analysis, string sizing, and international electrical code compliance.

Explore More Solar Terms

Browse 300+ terms in our complete solar glossary — or see how SurgePV puts these concepts into practice.

No credit card required · Full access · Cancel anytime