Skip to content

Solar advice/Costs and savings

Selling excess solar electricity in Spain: how compensation works

Solar power you do not use goes to the grid. For most homes it is not sold but credited on the monthly bill under simplified compensation. How that credit is worked out, what limits it, and what “virtual batteries” are.

By the Sunrise Energy teamUpdated 4 min read

When your panels produce more than the house uses, the surplus flows to the grid. For almost every home in Spain that surplus is not sold for cash. It is credited against your electricity bill under a scheme called simplified compensation (compensación simplificada de excedentes), set out in Real Decreto 244/2019. Knowing how that credit works explains why power you use yourself is worth more than power you export.

For how the system itself works, see how solar self-consumption works in Spain.

Self-use versus export

Every kWh the panels produce ends up in one of two places:

  • Used in the house as it is produced. You do not buy that kWh from the grid, so you save the full price you would have paid for it, including the grid charges and taxes on it.
  • Exported to the grid. It is recorded by the meter and credited at the price for surplus energy, which is lower.

The difference between those two values is why the size of a system should follow your daytime use.

Who qualifies for simplified compensation

Your system qualifies if:

  • it uses a renewable source, such as solar
  • its installed power is no more than 100 kW (for solar, the inverter’s power)
  • you have a compensation agreement with your electricity retailer
  • the installation receives no other special payment scheme

A normal home system meets these easily. The retailer sets up the agreement once the installation has been registered.

How the credit is worked out

Each billing period, which by law is at most a month:

1. The meter records, hour by hour, how much you imported and how much you exported. 2. The exported energy is valued at the price for surplus. 3. That value is deducted from the cost of the energy you imported in the same period, before taxes. 4. Taxes are then calculated on the reduced amount.

The credit can at most cancel out the value of the energy you imported that month. It cannot turn the energy part of the bill negative, and the law does not carry any leftover credit into the next month. It does not reduce the power term or the meter rental either. Which parts of the bill stay is explained in can solar panels eliminate your electricity bill.

The price you get for surplus

It depends on your contract:

  • Regulated tariff (PVPC) with a reference retailer: the surplus is valued at the average hourly market price minus the cost of deviations, a formula set in the regulation. Red Eléctrica publishes the resulting prices. It follows the wholesale market, so it changes every hour and is often low around midday when there is a lot of solar power on the grid.
  • Free-market contract: the surplus is valued at the price agreed with your retailer, as stated in your contract. Offers differ, so compare them.

A worked example

This example uses made-up prices to show the mechanism. Look at your own contract for yours.

  • In a sunny month you import 200 kWh from the grid and export 300 kWh.
  • Your contract values imported energy at price A per kWh and surplus at price B, and B is lower than A.
  • Energy cost before compensation: 200 × A.
  • Value of the surplus: 300 × B.
  • If 300 × B is less than 200 × A, the whole surplus value is deducted. If it is more, the deduction stops at 200 × A and the rest is lost that month.

That last line is why a large surplus in summer can go partly unused, and why a system much larger than your daytime use adds less than it seems.

“Virtual batteries” and solar wallets

Some retailers offer a virtual battery or solar wallet: surplus value that exceeds the monthly limit is kept as a balance and used on later bills, sometimes against other items too. This is a commercial product of that retailer, not a right under the regulation. Read the conditions: some charge a monthly fee, some limit what the balance can be used for, and the balance may be lost if you switch retailer. A virtual battery is not a physical battery and gives no power during a power cut.

Can I be paid in cash instead?

Only by choosing the third type of self-consumption, selling surplus as a producer. That means registering as a producer, dealing with the market and tax obligations, and giving up simplified compensation. For a home it is rarely worth it.

What to check on your contract

  • Is it PVPC or free market?
  • What price does it give for surplus, and is it fixed or tied to the market?
  • Is there a virtual battery, what does it cost, and what can the balance be used for?
  • Is there a fee for the compensation service?

We help customers set up the compensation agreement, and sometimes switch retailer when another offer suits a solar home better. Whether solar is worth it overall is worked out in are solar panels worth it in Spain. For a quote that includes the export side, ask us.

Self-use or export

Power you use versus power you export

Used in the house

What happens
Replaces power you would have bought
Value per kWh
The full price you pay for power, with charges and taxes
Limit
None
Leftover credit
Not applicable
How to get more of it
Use power in daylight; timers; battery

Exported to the grid

What happens
Credited on your bill
Value per kWh
The price for surplus in your contract, lower
Limit
At most the value of the energy imported that month
Leftover credit
Lost by law; kept only with a retailer’s virtual battery
How to get more of it
A larger system, but with falling value

Rules from Real Decreto 244/2019. Prices depend on your contract.

Reading the bill

Where the surplus shows on your bill

Retailers word these lines differently. This is what to look for.

What it is

Energy consumed
kWh imported from the grid, by period
Surplus compensation
Exported kWh × surplus price, deducted
Power term
Contracted kW × days
Electricity tax
Percentage of energy and power, after compensation
Meter rental
Fixed monthly amount
IVA
On the total

Changes with solar?

Energy consumed
Yes, lower
Surplus compensation
New line
Power term
No
Electricity tax
Falls with the amount
Meter rental
No
IVA
Falls with the amount

Line names vary by retailer. A redacted real invoice will be added here once we have one we may publish.

Frequently asked questions

Sunrise Energy

Ask me anything about going solar here, or pick one of these.

More questions

Answers come from our own frequently asked questions, written by the Sunrise Energy team.

Do I get paid for the solar power I send to the grid?

Not in cash, under simplified compensation. The surplus is credited against the energy on your monthly bill, up to the value of the energy you imported that month.

What happens to surplus above the monthly limit?

By law it is not carried over. Some retailers keep it as a balance in a virtual battery or solar wallet, under their own conditions.

Is the surplus price the same as the price I pay?

No, it is lower. On PVPC it follows the hourly market price minus deviation costs; on a free-market contract it is the price agreed with your retailer.

Want to know what this means for your roof?

Leave your details and we come and look. Figures follow once we have seen the roof and your consumption.

Request an obligation free quotation

Step 1 of 3

Are you a private individual or a business?