Having endured a miserable Ashes this winter, taking only seven wickets in England's series defeat, the 34-year-old off-spinner has ruled himself out of the remainder of the tour.
He wrote in his column in the Sun on Sunday: "When I left home back in October I thought this might be my last tour for England. Then a couple of weeks ago, I looked in the mirror and I knew it would be.
"People always say that sportsmen instinctively know when the time is right to retire and I had that exact feeling during the Adelaide Test.
"So now with the series beyond our reach I have just brought forward the decision by a couple of matches."
Swann's career will stand comparison with England's greatest, after 255 Test wickets - the most by any off-spinner in his country's history.