El Salvador has a size of 21,040 km² or 8,124 mi² which is slightly smaller than Massachusetts.