The atmosphere does not end at a specific place. The higher above the Earth, the thinner the atmosphere. There is no clear border between the atmosphere and outer space, though the Kármán line is sometimes treated as a border. Even higher, for some purposes the edge of the magnetosphere is treated as a border. 75% of the atmosphere is within of the Earth's surface.