Pennsylvania (US: (listen) PEN-səl-VAY-nee-ə, elsewhere -sil-; Pennsylvania German: Pennsilfaani), officially the Commonwealth of Pennsylvania, is a state in the Mid-Atlantic, Northeastern, and Appalachian regions of the United States. The Commonwealth is bordered by Delaware to the southeast, Maryland to the south, West Virginia to the southwest, Ohio to the west, Lake Erie and the Canadian province of Ontario to the northwest, New York to the north, and New Jersey to the east, while the Appalachian Mountains run through its middle.
Pennsylvania is the 33rd-largest state by area, and the 5th-most populous state with a total population of 13,011,844 according to the most recent official U.S. Census count in 2020. It is the 9th-most densely populated of the 50 states. Pennsylvania's two most populous metropolitan areas are the Delaware Valley, centered around the state's largest city Philadelphia (6.25 million), and Greater Pittsburgh (2.37 million). The state capital and its 15th-largest municipality is Harrisburg. Pennsylvania has 140 miles (225 km) of waterfront along Lake Erie and the Delaware River.
The state is one of the Thirteen original founding states of the United States; it came into being in 1681 as a result of a royal land grant to William Penn, the son of the state's namesake. Part of Pennsylvania (along the Delaware River), together with the present State of Delaware, had earlier been organized as the Colony of New Sweden. It was the second state to ratify the United States Constitution, on December 12, 1787. Independence Hall, where the United States Declaration of Independence and United States Constitution were drafted, is located in Philadelphia, the state's largest city. During the American Civil War, the Battle of Gettysburg was fought in the south central region of the state. Valley Forge near Philadelphia was General Washington's headquarters during the bitter winter of 1777–78.