Situated in New England in the northeastern US, New Hampshire ranks 44th in size among the 50 states. The total area of New Hampshire is 9,279 sq mi (24,033 sq km), comprising 8,993 sq mi (23,292 sq km) of land and 286 sq mi (741 sq km) of inland water. The state has a maximum extension of 93 mi (150 km) E-W and 180 mi (290 km) N-S. New Hampshire is shaped roughly like a right triangle, with the line from the far N to the extreme SW forming the hypotenuse.
New Hampshire is bordered on the N by the Canadian province of Quebec; on the E by Maine (with part of the line formed by the Piscataqua and Salmon Falls rivers) and the Atlantic Ocean; on the S by Massachusetts; and on the W by Vermont (following the west bank of the Connecticut River) and Quebec (with the line formed by Halls Stream).
The three southernmost Isles of Shoals lying in the Atlantic belong to New Hampshire. The state's total boundary line is 555 mi (893 km). Its geographic center lies in Belknap County, 3 mi (5 km) E of Ashland.