Amtrak operates a bus from Hampton Beach to Boston every 2 hours, and the journey takes 30 min. Coach Company also services this route every 3 hours. Alternatively, MBTA operates a train from Hampton Beach to Boston hourly. Tickets cost $6 - $11 and the journey takes 1 h 3 min.
From Hampton Beach taxi to Newburyport, MA then Amtrak Thruway to Boston Sth, MA. 45 min $96. From Hampton Beach taxi to Newburyport then train to North Station. 1 h 19 min $89. From Hampton Beach taxi to Boston. 54 min $340. From Hampton Beach drive to Boston. 54 min $5.