Your vo2 max is a large part of it, that’s the percentage of oxygen your body can process out of each breath of air.
If you have more type 1 muscle fibers that also helps, some people are born with more, and are thus more equipped to be endurance athletes.
You can train both of those and see improvements though.
Latest Answers