Most house roof solar panels don't need planning permission in England, but flats, listed buildings, conservation areas and building regs can change that.
In England, permitted development rights for solar panels are set out in law and come with legal size and height limits; exceeding them means you need planning permission.
Listed building consent is a separate legal requirement for any work affecting a listed building, including solar panels.
Electrical work connecting solar panels must meet Building Regulations Part P, which is a legal requirement in England and Wales.
Carrying out development without required planning permission is a breach of planning law, and councils have legal powers to take enforcement action.
In Scotland, a building warrant is needed if the roof has to be strengthened to take the panels.