Family travel in Edinburgh benefits enormously from the city's compact scale — the Old Town sights (Castle, National Museum, Camera Obscura, Real Mary King's Close) are all within 15 minutes' walk of each other, and a central hotel puts families on foot for most of the holiday. No taxis, no buses, no time lost on transport.
For families with younger children (under 10), the Old Town cluster of attractions is the primary draw. The National Museum of Scotland (free) is probably the best family museum in Scotland — its dinosaur galleries, interactive science floor, and Scottish history timeline are engaging for children across a wide age range. The Camera Obscura on the Royal Mile has five floors of interactive optical illusions that consistently delight primary-school-age children. Dynamic Earth near Holyrood provides an hour of immersive geology and climate science.
For families with teenagers, the Old Town's underground history (Real Mary King's Close), the National War Museum in the Castle, and the Arthur's Seat hike (2.5 hours, entirely accessible) offer more sophisticated engagement. The Scottish National Museum's contemporary Scotland galleries — covering design, culture, and identity — are particularly good for curious teenagers.
Edinburgh Zoo in Corstorphine is 4km from the city centre and hosts the UK's only giant pandas alongside koalas, penguins, and a good primate section — 30 minutes by tram from Princes Street.
Practical family essentials: most hotels have cot provision and interconnecting rooms but inventory is limited — book directly and confirm room configuration in advance. The LUAS Edinburgh Tram to the Zoo is easy and step-free. The city centre is pushchair-navigable with some steep sections in the Old Town.