Hastings attended Buckingham Browne & Nichols School in Cambridge, Massachusetts, and sold vacuum cleaners door-to-door in a gap year before entering college. In 1983, he graduated from Bowdoin College with a Bachelor of Arts degree in Mathematics, which he found "beautiful and engaging".
