Prof Richard Nelson describes the latest understanding of how planets form around stars, both in our own solar system and in the rest of the galaxy. Some 50% of stars are now known to have planetary systems, so how many of them are likely to have planets in habitable zones? Given at the SPA Convention in Cambridge on 30 April 2019.