If an effect allows you to cast Graveyard Shift from your graveyard, you may cast it any time you could cast an instant if you have five or more mana values among cards in your graveyard immediately before you begin to cast it, even if moving it to the stack would reduce that number to four.

Artwork
Loading artwork…
Graveyard Shift
Streets of New Capenna · #81 · EN
Nonfoil—Foil—
Card rules
This spell has flash as long as there are five or more mana values among cards in your graveyard.
Return target creature card from your graveyard to the battlefield.
"Up and at 'em, buddy. We've got more work to do."
Uncommon · Illustrated by Liiga Smilshkalne
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pioneer Legal
Timeless Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
The mana value of a land card is 0.
“Five or more mana values among cards in your graveyard” means there are at least five mana values among those cards.
X is 0 when determining the mana value of a card in your graveyard.
The mana value of a double-faced card in your graveyard is always the mana value of the front face.
The mana value of a split card in the graveyard is the total mana value of both halves of that card. It does not have two mana values.
The game checks whether it is legal to cast a spell before costs are determined or mana abilities are activated while casting it. If cards are removed from your graveyard after that point, such as by exiling Jack-o'-Lantern from your graveyard to pay for its mana ability, this won't affect whether you can legally cast Graveyard Shift, even if that reduces the number of mana values in your graveyard to below five.