There are many factors that go into what size you should get. The biggest factor is height. Other more nuanced factors that go into proper sizing are things like arm length, inseam, and torso length. Many bike manufacturers will list a general height recommendation for each frame size, but for the more accurate fit, you’ll want to talk to a professional bike fitter.