In this guide we explain microgrid components and topology with simple diagrams: the parts, the two operating modes, AC, DC and hybrid layouts, control, protection and a sizing example.
Quick answer: A microgrid is a small local power system with clear boundaries. It can run connected to the main grid or on its own as an island. Its main components are distributed energy resources (solar PV, wind, gensets, CHP), energy storage, loads, power converters, a switch at the point of common coupling (PCC), a controller, protection and communications. Its topology is AC, DC or hybrid AC/DC. When the grid fails, the PCC opens and a grid-forming source keeps the critical loads on.
What a microgrid is and why we need one
Most of our electricity comes from large power plants far away. It travels over long lines to reach us. This works well most of the time. But when a storm or a fault cuts the line, everyone downstream loses power. So here is the question: can a hospital, a campus or an island keep its lights on when the big grid goes down?
A microgrid is one answer. The US Department of Energy (DOE) uses this definition: a microgrid is "a group of interconnected loads and distributed energy resources within clearly defined electrical boundaries that acts as a single controllable entity with respect to the grid." It "can connect and disconnect from the grid to enable it to operate in both grid-connected or island mode."
Three words in that definition matter most:
- Distributed energy resources (DERs) are small sources close to the loads, such as solar panels, wind turbines, gensets and batteries.
- Clearly defined boundaries means we know exactly which loads and sources belong to the microgrid. There is one point where it meets the main grid.
- Single controllable entity means a controller runs all the parts together. To the utility, the whole microgrid looks like one customer or one generator.
Rooftop solar alone is not a microgrid. Under the US interconnection standard IEEE 1547, a normal grid-tied inverter must detect an unintended island and stop within 2 seconds. This protects line workers. So the house goes dark in an outage, even in full sun. The figure below compares the two cases.
A microgrid avoids this. It has a switch that separates it from the grid on purpose. It also has a source that can hold the voltage and frequency on its own. Then its DERs can keep running safely, because they feed only the microgrid's own loads.
Think of the main grid as the large blood vessels of a body, and microgrids as the small capillaries at the ends. The capillaries feed the cells nearby. They take in local energy, like solar and wind, and keep working if a big vessel is blocked for a while.
Microgrid components
Every microgrid uses the same families of parts. The size and mix change from site to site. The figure below shows them on one AC bus. A bus is the common conductor where all parts connect.
Distributed energy resources
These make the power. Microgrids usually mix two kinds:
- Variable renewables. Solar PV turns sunlight into DC electricity. Wind turbines turn moving air into electricity. Both are clean and cost nothing to run. But their output changes with the weather, and we cannot turn them up on demand. Solar and wind often help each other, because wind can blow when the sun is low. On some islands, small hydro also helps in the rainy season.
- Dispatchable units. Dispatchable means we can start, stop and set them when we want. Diesel and natural-gas gensets are the common choice. A combined heat and power (CHP) unit is a gas engine or turbine whose waste heat is also used, for heating or industry. This makes much better use of the fuel. CHP suits hospitals, universities and factories that need both heat and power.
Energy storage
Storage moves energy in time. It charges when there is surplus and discharges when there is not enough. It also reacts in milliseconds, much faster than an engine. So it is the natural partner for solar and wind. The common types are:
- Batteries, mostly lithium-ion, also lead-acid and flow batteries. They are the main storage in almost every new microgrid.
- Supercapacitors store energy in an electric field. They hold little energy but give high power for seconds.
- Flywheels store energy in a fast-spinning rotor. They suit short, frequent charge and discharge cycles.
- Larger options such as pumped hydro, compressed air (CAES) and lifted weights store energy for many hours. They suit only big systems with the right site.
Loads
A microgrid sorts its loads by importance. Critical loads must stay on, for example operating theatres, server rooms, water pumps and emergency lighting. Flexible loads can wait or slow down, such as EV charging, water heating and air conditioning. Non-critical loads can be switched off, or shed, in an emergency. Shifting and shedding loads is called demand-side management. It is often cheaper than adding more generation.
Converters, PCC, controller, protection and communications
Power electronic converters connect solar, batteries and many wind turbines to the bus. An inverter turns DC into AC. A rectifier turns AC into DC. Converters also control how much power each source gives. The point of common coupling (PCC) is the one point where the microgrid meets the utility grid. There a circuit breaker, or a fast static switch made of thyristors or transistors, connects or separates the two. A static switch can open in a fraction of a cycle. The microgrid controller is the brain. It sets the output of each source, decides when to island and reconnect, and sheds loads when needed. Protection relays and breakers clear faults. A communications network links everything.
| Part | Its job |
|---|---|
| DERs | Make power: solar PV, wind, diesel or gas gensets, CHP, fuel cells, small hydro. |
| Energy storage | Shift energy in time and respond in milliseconds: mostly batteries, sometimes flywheels or supercapacitors. |
| Loads | Use power. Split into critical, flexible and non-critical. |
| Power converters | Connect DC sources and storage to the AC bus, and control their power. |
| PCC switch | Connects to or separates from the utility. A breaker, or a fast static switch. |
| Controller | Decides setpoints, islanding and reconnection, and load shedding. |
| Protection | Relays and breakers that clear faults in both modes. |
| Communications | Carries measurements and commands between all parts. |
Grid-connected and islanded modes
A microgrid has two main operating modes. The animation at the top of the page shows the change from one to the other.
- Grid-connected mode. The PCC switch is closed. The utility grid holds the voltage and frequency. The microgrid can import power or export its surplus. It can also earn money by cutting demand at peak times, which is called demand response.
- Islanded mode. The PCC switch is open. The microgrid runs alone. Now its own sources must hold the voltage and frequency, and match supply to load every moment.
Some microgrids never connect to a utility at all. These stand-alone or off-grid microgrids serve remote villages, mines and islands. They are always "islanded".
Treating "islanded" and "stand-alone" as two kinds of microgrid on the same list as "grid-connected". Islanded is a mode. A grid-connected microgrid spends some hours in it. Stand-alone is a type: a microgrid with no utility connection at all.
IEEE 1547-2018 describes an intentional island in four parts: grid-connected operation, the transition into the island, islanded operation, and the transition back. The figure below shows the loop.
The transition can be planned, for example before a storm or for maintenance. Then the controller first brings the power through the PCC close to zero, and the change is smooth. Or it can be unplanned, after a fault. Then the microgrid must island fast, and the battery and loads take a sudden step. The four cards below follow an unplanned island and the return to the grid.
1Detect the problem
Relays at the PCC watch the utility voltage and frequency. A fault or outage pushes them out of limits.
2Open the PCC and form
The PCC switch opens. One source, often the battery inverter, now sets the voltage and frequency.
3Balance the island
The controller sheds non-critical loads and starts the genset, so supply matches load.
4Resynchronize and reconnect
When the grid is back, the island matches its voltage, frequency and phase angle, then closes the PCC.
The reconnection limits in step 4 come from IEEE 1547-2018 for sources up to 500 kVA. Larger sources must match more closely: 0.2 Hz, 5% and 15° from 500 to 1,500 kVA, and 0.1 Hz, 3% and 10° above that.
Microgrid topologies: AC, DC and hybrid
The topology of a microgrid is how its parts are wired together. The key choice is the type of the main bus. The figure below puts the three options side by side.
AC microgrids are the most common. Everything connects to an AC bus at 50 Hz or 60 Hz, like the normal grid. Gensets, motors and most building wiring connect directly. Protection is mature and well understood. The cost is extra conversion: solar and batteries make DC, so each needs an inverter. And the controller must manage frequency and reactive power. Reactive power is the power that builds magnetic and electric fields without doing useful work.
DC microgrids use a DC bus. Solar, batteries, LED lighting, IT equipment and EV chargers are DC inside, so they connect with fewer conversion stages. There is no frequency to hold and no reactive power to manage. But AC loads and the grid now need inverters. DC circuits are also harder to protect. A DC arc has no natural current zero, so it is harder to break, and there are fewer standards and products. DC microgrids suit data centres, telecom sites, ships and small solar home systems.
Hybrid AC/DC microgrids have both buses, joined by an interlinking converter (IC). Each source and load goes on the bus that suits it. A campus might keep its old buildings on AC, while EV chargers and a data hall sit on DC. The interlinking converter then becomes a critical part.
| Topology | Good at | Watch out for |
|---|---|---|
| AC | Works with existing wiring, gensets, motors and grid equipment. Mature protection. | Extra DC/AC stages for PV and batteries. Frequency and reactive power to manage. |
| DC | Fewer stages for PV, batteries, LEDs, IT and EV loads. No frequency or reactive power. | Inverters for AC loads and the grid. DC arcs are hard to break; fewer standards. |
| Hybrid | Each load on the bus that suits it. | The interlinking converter is a key part; control is more complex. |
Microgrids are also grouped by voltage level. A low-voltage microgrid covers one site, such as a factory or a group of buildings. It is often owned by the energy user. A medium-voltage microgrid covers a whole distribution feeder or a branch of it, with many customers. It is usually run by the utility.
How a microgrid is controlled
In an island, someone must hold the frequency and voltage. Someone must also share the load between sources. Microgrid control does this in three layers, each slower than the one below it. The figure below shows them.
- Primary control works inside each source, in milliseconds to seconds. Its main tool is droop control. Each source lowers its frequency a little as its power output rises. With a 4% droop on a 50 Hz system, the frequency falls 2 Hz from no load to full load. Sources with the same droop share load in proportion to their size, with no fast communication. Read more in our guide on droop control.
- Secondary control removes the error that droop leaves. It shifts the droop lines up or down until the frequency and voltage are back at nominal. It acts over seconds to minutes.
- Tertiary control handles the economics. It decides which sources run, how to charge the battery, and how much to import or export. It uses forecasts of load, sun and price. It acts over minutes to hours. This is often called the energy management system (EMS).
The layers can be built in different ways. In central control, one controller sends setpoints to every device. In decentralized control, each device acts on local measurements, as in pure droop control. In distributed or multi-agent control, each device has its own small controller that talks to its neighbours. Real microgrids often mix these.
Grid-forming and grid-following inverters
Inverters can be controlled in two very different ways. The figure below compares them.
A grid-following inverter behaves like a current source. It measures the grid voltage with a phase-locked loop (PLL), a circuit that tracks the phase and frequency of a waveform. Then it injects current in step with it. Most rooftop solar inverters work this way. They need an existing voltage to follow.
A grid-forming inverter behaves like a voltage source. It creates its own voltage waveform and frequency, much like a synchronous generator does. It can start a dead island, which is called a black start, and hold it. An island needs at least one grid-forming source: a grid-forming battery inverter, or a genset. Read more about grid-forming inverters.
Think of a band. The grid-forming source is the drummer who sets the beat. The grid-following inverters are the other musicians. They play well, but only while they can hear the drum. If the drummer stops, the music stops.
Protection and standards
Protecting a microgrid is harder than protecting a normal feeder. There are two main reasons.
Low fault current in islanded mode. A fault is a short circuit. When connected, the utility feeds a large fault current, often 10 to 50 times the full-load current. Simple overcurrent relays easily see this. In an island, synchronous gensets give only about 5 times full-load current. Inverters limit their current to protect their own transistors, typically to about 1.2 to 2 times rated current. The figure below shows the gap.
So a relay set for grid faults may never trip in an island. Common fixes are adaptive protection, which switches to a second group of settings when the microgrid islands, and differential or voltage-based protection that does not need a large current.
Bidirectional power flow. In a normal radial feeder, power and fault current flow one way, from the substation out. In a microgrid, sources sit all along the feeder. Fault current can come from both sides. A relay may see current from a DER and trip the wrong breaker. Or a DER may hide a fault from an upstream relay, which is called protection blinding. Microgrids therefore use directional relays and careful coordination. The protection must also detect faults in both modes, inside and outside the microgrid.
Reusing the feeder's existing overcurrent settings after adding a battery and solar island. In grid-connected mode they work. In islanded mode the fault current is too small, and a fault can stay on the system.
Key standards
- IEEE 1547-2018 sets the rules for connecting DERs to the distribution grid. It covers voltage and frequency ride-through, unintentional islanding and intentional islands, including the reconnection limits above.
- IEEE 2030.7-2017 specifies the microgrid controller. It defines two core functions: dispatch, which sets each device's mode and setpoints, and transition, which manages the move between connected and islanded states.
- IEEE 2030.8-2018 describes how to test a microgrid controller against IEEE 2030.7.
Worked example: sizing a campus microgrid
Let us size a simple microgrid for a small campus. The critical loads are a clinic, a server room, water pumps and emergency lighting. Together they draw about 100 kW on average. We want them to ride through a long outage. The battery must carry them for one night of 12 hours. Solar should refill it by day, and a genset is the backup.
Step 1: energy for the night. E = 100 kW × 12 h = 1,200 kWh.
Step 2: battery size. We should not drain a lithium-ion battery completely, so we allow a 90% depth of discharge. We also lose about 5% in the inverter and battery. So the nameplate energy is 1,200 ÷ (0.90 × 0.95) ≈ 1,404 kWh. We choose 1,500 kWh. The battery inverter must cover the peak load and motor starting. With a peak of about 140 kW, a 250 kW grid-forming inverter gives a good margin.
Step 3: solar size. On an island day, solar must supply the daytime load and also recharge the battery. That is about 100 × 12 + 1,200 = 2,400 kWh. Let us assume a site where each kWp of solar gives about 4 kWh per day. (This number varies a lot with location and season.) We need 2,400 ÷ 4 = 600 kWp of PV. Its output peaks at about 314 kW on such a day.
Step 4: genset. Some days are cloudy. The genset must carry the critical load alone, with margin for motor starting. A 200 kW genset covers the 140 kW peak and runs near 70% load, where it works efficiently. It can also recharge the battery.
The figure below shows how the energy flows on a sunny islanded day.
A check on the numbers: with a 1,500 kWh battery, the island lasts 1,500 × 0.90 × 0.95 ÷ 100 ≈ 12.8 hours on the battery alone. That covers one night with a little spare. Try other sizes below.
Battery alone, no PV or genset. Usable energy = nameplate × 0.90 (allowed depth of discharge) × 0.95 (inverter and battery losses). Real loads vary over the day, so treat the result as an estimate.
Using the battery's nameplate kWh as the energy we can use. The allowed depth of discharge, the losses, ageing and cold weather all cut the usable energy. Size from the usable energy, and leave margin.
Real projects go further. They use a full year of hourly load and weather data. A planning tool then searches for the cheapest mix that meets the reliability target. Detailed simulation also checks the fast events, from microsecond switching to minute-long changes in load and sun.
Where microgrids are used
- Islands. Islands often depend on costly imported diesel. A microgrid mixes solar, wind and storage, and in wet seasons small hydro, with diesel as backup. The controller starts the diesel only when needed.
- Remote areas. Villages, mines and telecom sites far from the grid use off-grid microgrids. Solar with batteries and a diesel backup is a common design. Small solar home systems often run directly on DC.
- Campuses and hospitals. Universities, hospitals and research sites use grid-connected microgrids, often with CHP. They gain resilience and lower energy bills.
- Military bases and critical facilities. Bases, water plants and emergency centres need power through long outages.
- Industry and data centres. Factories and data centres use microgrids for power quality and backup. Many use DC or hybrid buses.
- Urban communities. A neighbourhood microgrid can share local solar and storage, island during a grid fault, and sell surplus and demand response when connected.
Microgrids also bring wider benefits. Power is used close to where it is made, so losses on long lines are lower. Local generation can delay costly upgrades to lines and substations. But there are challenges too. The design needs skill across power electronics, protection and control. Equipment from different makers must work together. And ownership, funding and tariffs for selling power to and from the grid can be complex.
Key takeaways
- A microgrid is a group of loads and DERs inside clear boundaries that acts as one controllable unit and can run connected or islanded (DOE definition).
- Its components are DERs, storage, loads, converters, the PCC switch, a controller, protection and communications.
- When the grid fails, the PCC opens and a grid-forming source holds the voltage and frequency. Non-critical loads are shed. To reconnect, the island must match voltage, frequency and phase.
- AC topology is the most common. DC needs fewer conversions for solar, batteries and DC loads. Hybrid AC/DC uses an interlinking converter to get both.
- Control has three layers: primary droop, secondary restoration and tertiary economics. IEEE 2030.7 and 2030.8 cover the controller and its testing.
- Island fault currents are small and power flows both ways, so microgrid protection needs adaptive, directional or differential schemes.
Next, we suggest learning how droop control shares load, how storage systems work, and why grid-forming inverters matter. The guides below go deeper.
Standards named in this guide: IEEE 1547-2018 and IEEE 2030.7-2017 (IEEE Standards Association).
Related guides on Electrical Blog:
