The calculated distance (air line) between Boston and Hingham is approximately 12 miles respectively 19 kilometers.
By car or train, the actual journey to Hingham is certainly longer, as only the direct route (as the crow flies) between Boston and Hingham has been calculated here.