The Karman line, at 100 km (62 miles), is also frequently used as the boundary between atmosphere and outer space. For all intents and purposes, space starts at about 62 miles. And no, it has absolutely zero to due with the Earth's gravity.