How high can a shed be near a boundary?
For permitted development in England, the Planning Portal gives a maximum overall height of 2.5 metres when an outbuilding is within two metres of a boundary. Other conditions still apply, so passing this one measurement is not enough.
Use the official definitions and check local restrictions. Scotland, Wales and Northern Ireland differ.