Leesburg is located in the northern Virginia Piedmont at the base of the easternmost chain of the Blue Ridge Mountains, Catoctin Mountain. The town is an area of the Piedmont known as the Culpeper Basin (an inland sea during the Jurassic period) and is also in the valley of the Potomac River, so that the overall relief is much less dramatic than other Virginia Piedmont towns. The median income of the households in the town is $68,861, and the median income of the families is $78,111 (these figures had risen to $87,346 and $105,260 respectively as of a 2007 estimate). Males had a median income of $51,267 versus $35,717 for females. The per capita income for the town was $30,116.
Leesburg currently has four public high schools operated by the Loudoun County Public School system: Loudoun County High School, Heritage High School, Tuscarora High School, and Riverside High School. Leesburg is also served by several private schools, including Dominion Academy, a K–8 non-denominational Christian school; Leesburg Christian School, a K–12 non-denominational Christian school; and pre-K-8 Loudoun Country Day School.