One trick is to get in the habit of saving little and often, while taking advantage of tax-free wrappers like ISAs.
The amount of money you need to buy an individual stock depends on how expensive the shares are. https://medium.com/@bombshellstocks/how-to-invest-in-stocks-for-beginners-with-little-money-b9f30f827ea2