The Chris Cornell-led band's first new song in 15 years 'Live To Rise' will be featured on the album, titled Avengers Assemble.
"We've been hard at work on our new album, which will come out this fall," the band said in a statement. "When the opportunity arose to write an original song for Marvel's The Avengers film... we thought it could be a cool match."
Evanescence, Papa Roach, Rise Against and Bush also feature on the compilation, while Kasabian appear on the album's international edition.
Avengers Assemble will be released on May 1, while there will also be a score from Alan Silvestri.
Soundgarden will headline the Hard Rock Calling festival at London's Hyde Park in July.
The Avengers (titled Marvel Avengers Assemble in the UK) hits UK cinemas on April 26 and May 4 in the US.
The tracklisting for Avengers Assemble is as follows:
1. 'Live to Rise' - Soundgarden
2. 'I'm Alive' - Shinedown
3. 'Dirt and Roses' - Rise Against
4. 'Even If I Could' - Papa Roach
5. 'Unbroken' - Black Veil Brides
6. 'Breath' - Scott Weiland
7. 'Comeback' - Redlight King
8. 'Into the Blue' - Bush
9. 'A New Way to Bleed (Photek Remix)' - Evanescence
10. 'Count Me Out' - PUSHERJONES
11. 'Shoot to Thrill' - Theory of a Deadman
12. 'Wherever I Go' - Buckcherry
13. 'From Out of Nowhere' - Five Finger Death Punch
14. 'Shake the Ground' - Cherri Bomb
Additional track on the international release:
15. 'Pistols At Dawn' - Kasabian
Listen to a clip of Soundgarden's new track 'Live to Rise' for the new Avengers movie below: