El Salvador, the smallest Central American country, has an area of 21,040 sq km (8,124 sq mi), extending 270 km (168 mi) WNW-ESE and 142 km (88 mi) N – S . Comparatively, the area occupied by El Salvador is slightly smaller than the state of Massachusetts. Bounded on the N and E by Honduras, on the S and SW by the Pacific Ocean, and on the NW by Guatemala, El Salvador has a total boundary length of 852 km (529 mi), of which 307 km (191 mi) is coastline. It is the only Central American country without a Caribbean coastline.
El Salvador's capital city, San Salvador, is located in the west central part of the country.