Machado's solo blast against Bosox starter Felix Doubront (11-10) broke a 3-3 deadlock and carried the Orioles to their third straight victory.
Coupled with the New York Yankees' loss to Toronto Saturday, the Baltimore pulled into a first-place tie atop the American League East with four games remaining in the regular season.
Chris Davis cracked a two-run homer for Baltimore.
Doubront allowed four runs (three earned) on seven hits over seven innings, striking out 10.
Jarrod Saltalamacchia supplied a two-run shot for Boston.
Ray Liotta sues skin care company over use of likeness
Millions of Getty images now available for free via embed tool