Rupert Grint kissed a massive refund goodbye.

The actor, who played Ron Weasley in the “Harry Potter” franchise, lost a legal battle over a $1.3 million tax refund, according to the Guardian.

On Tuesday, a tax tribunal judge rejected the 27-year-old actor’s appeal against HM Revenue and Customs’ block on Grint changing his accounting dates to avoid being taxed at a higher percentage.

Grint wanted 20 months to be taxed in the 2009-2010 year under the 40 percent rate instead of the 2010-2011 year, in which the rate rose to 50 percent.

According to Metro.co.uk, Grint’s lawyer made it very clear his client wanted a refund and that he paid his taxes in full. “There is no tax avoidance involved here,” Patrick Soares said. “He has paid all his tax up front.”

The British government increased the tax rate by 10 percent after the banking crisis, but it was eliminated two years later.

Grint is said to have earned roughly $31.2 million from the epic eight-movie franchise he starred in from the age of 12.

During the hearing, Grint confessed he actually had little to do with his own finances, saying his knowledge was “quite limited.” Grint left the decisions up to his father, Nigel, and accountant, Dan Clay.

This article originally appeared in the New York Post's Page Six.