Portobello BeachLong sandy beach and promenade east of the city, reached by bus in about half an hour. Amusements, cafes and an outdoor swimming pool nearby.
Free
The other 8 beaches in Edinburgh
The 2 above are the ones we have been to. The map also carries 8 more beaches from OpenStreetMap. Those come without a write-up, but they are the ones to reach for when you need the nearest rather than the best.