Download Festival 2012 will run from June 8-10. Tickets go on sale at 9am on Friday November 18.
The group said it's 10th birthday automatically entitled to celebrate a great festival as The Black Album by fans known as the Classic will perform.
Band co-founder and drummer Lars Ulrich said: "Six years is way too long to be away from the hallowed grounds of Donington Park. We are beyond psyched and feel privileged to come back once again to soak up the energy and vibe of the most legendary of festival sites."
The band's eighth visit to Donington Park will be. Monsters of Rock festival in 1985 and in 2006 played a free festival headlined.
Andy Copping, vice president of promotions at Live Nation, said: "I am absolutely bowled over that Metallica will be playing The Black Album at the 10th anniversary of Download.
"The album is up there as one of the greatest albums of all time, everyone knows the songs.
"The Download festival has come a long way since we first started in 2003 and to have Metallica back to help us celebrate this milestone is just fantastic."
The Black Album is number one in over 25 countries and more than 25 million copies sold worldwide.
It includes hits Enter Sandman, Sad But True, Wherever I May Roam, Nothing Else Matters, and The Unforgiven.