Grimoire interface

The Grimoire interface

The Grimoire is a minigame added on July 15, 2017, Version 2.0034. It is unlocked by spending one sugar lump to upgrade Wizard Towers to level 1.

It has several spells that can be cast:

Spell Magic Cost Chance to Backfire Effect Backfire
Grimoireicons 01

Conjure Baked Goods

2 magic +40% of max magic 15% Summon half an hour worth of your CpS, capped at 15% of your cookies owned. Trigger a 15-minute clot and lose 15 minutes of CpS.
Grimoireicons 02
Force the Hand of Fate 10 magic +60% of max magic 15% Summon a random golden cookie. Each existing golden cookie makes this spell +15% more likely to backfire. Summon an unlucky wrath cookie.
Grimoireicons 03
Stretch Time 8 magic +20% of max magic 15% All active buffs gain 10% more time (up to 5 more minutes). All active buffs are shortened by 20% (up to 10 minutes shorter).
Grimoireicons 04
Spontaneous Edifice 20 magic +75% of max magic 15% The spell picks a random building you could afford if you had twice your current cookies, and gives it to you for free. The building selected must be under 400, and cannot be your most-built one (unless it is your only one). Lose a random building.
Grimoireicons 05
Haggler's Charm[1] 10 magic +10% of max magic 15% Upgrades are 2% cheaper for 1 minute. Upgrades are 2% more expensive for an hour.
Grimoireicons 06
Summon Crafty Pixies 10 magic +20% of max magic 15% Buildings are 2% cheaper for 1 minute. Buildings are 2% more expensive for an hour.
Grimoireicons 07
Gambler's Fever Dream 3 magic +5% of max magic Cast a random spell at half the magic cost, with twice the chance of backfiring.
Grimoireicons 08
Resurrect Abomination 20 magic +10% of max magic 15% Instantly summon a wrinkler if conditions are fulfilled. Pop one of your wrinklers.
Grimoireicons 09
Diminish Ineptitude 5 magic +20% of max magic 15% Spells backfire 10 times less for the next 5 minutes. Spells backfire 5 times more for the next 10 minutes.

Each spell costs magic to use. Your maximum amount of magic varies depending on your amount of wizard towers, and their level. Magic refills over time. The lower your magic meter, the slower it refills.

Selling wizard towers will reduce maximum mana, but not current mana if it is lower than the new reduced maximum mana. This is allowing to cast Force the Hand of Fate once, then selling wizard towers to reduce the cost of a second cast. At 100 magic / 100 magic max, the first Force spell would cost 70 magic, letting 30 magic available. Selling towers to reduce magic max to 33, will make the cost of a second Force spell to go down to 30 magic, effectively allowing a double cast without the use of a sugar lump.

Outcome of Force the Hand of FateEdit

The mechanism of this spell follows random list mechanism. However, there is no "remove the last effect from the list" rule, which makes the calculation simpler (primitive probability is enough).

For golden cookie, the rules are:

  • Add Frenzy and Lucky to a pool.
  • If there is no Dragonflight buff active, add Click Frenzy.
  • 10% chance to add Chain, Storm and Blab to the pool.
  • 25% chance to add Building Special, if the you owned more than or equal to 10 total building.
    • For all building of which number more or equal to 10, choose one and buff according the chosen building's amount. If no building has such quantity, choose Frenzy.
  • 15% chance to replace the pool with Storm Drop.
  • 0.01% chance to add Free Sugar Lump to the pool.
  • Pick a random effect from the pool.

In following we assume at least one building's number is more or equal to 10.

The final results are:

No Dragonflight buff

Frenzy=Lucky=C. Frenzy Chain=Storm=Blab Building StormDrop Sugar
Exact \frac{566086723}{2240000000} \frac{1223983}{89600000} \frac{113897773}{2240000000} \frac{59997}{400000} \frac{60133}{2240000000}
Approx. 25.27172871% 1.366052455% 5.084722009% 14.99925% 0.002684508929%
With Dragonflight buff

Frenzy=Lucky Chain=Storm=Blab Building StormDrop Sugar
Exact \frac{410933877}{1120000000} \frac{4561593}{280000000} \frac{3014593}{44800000} \frac{59997}{400000} \frac{7341}{224000000}
Approx. 36.69052473% 1.629140357% 6.729002232% 14.99925% 0.003277232143%

For wrath cookie (backfire), the rules are:

  • Add Clot and Ruin to a pool.
  • 10% chance to add Cursed Finger and Elder Frenzy to the pool.
  • 0.3% chance to add Free Sugar Lump to the pool.
  • 10% chance to replace the pool with Blab.
  • Pick a random effect from the pool.

The final result is:

Clot=Ruin Cursed Finger=Elder Frenzy Sugar Blab
Exact \frac{854163}{2000000} \frac{44973}{2000000} \frac{27}{31250} \frac{1}{10}
Exact 42.70815% 2.24865% 0.0864% 10%


Oddly enough, the seed used to determine the outcome of casting a spell is stored in your save-file as for version v2.0042. This means that if you save the game, cast a spell, re-load the game, and cast the same spell, the outcome will be the same. This means that you can check in advance to see whether a spell will have a favorable outcome, and then use that spell at a later time with predictable results. One application of this is using Force the Hand of Fate to confirm either a Click Frenzy, or Elder Frenzy cookie will be generated and use that during a Frenzy, Building Special or/and Dragonflight buff.

Also, the seed for whether a spell will backfire or not is also stored, but is stored as a general effect, not tied to each specific spell. This can be manipulated so that the backfire can be "wasted" on a spell that won't have as much of an impact, such as using it on Diminish Ineptitude to make it cause backfires to occur 5 times more likely for 10 minutes, and then not use spells during those 10 minutes, or use it on Haggler's Charm to cause upgrades to be 2% more expensive for an hour when no upgrades are available to purchase, or are too expensive to purchase within the hour.

Spontaneous Edifice mechanicsEdit

Spontaneous Edifice cannot be used to obtain building quantity achievements, the player must manually purchase another building of the same kind in order to do so.

Mana recharge time and levelEdit

The maximum mana one can have is determined by the following formula:

magicM=\left\lfloor 4+(towers^{0.6})+\ln\left(\frac{towers+(level-1)\cdot 10}{15}+1\right)\cdot 15 \right\rfloor \frac{5}{9}\,\mathrm{max}\left( 10,\sqrt{magicM}\right) \,\left( \sqrt{end}-\sqrt{begin}\right)

...where magicM is the maximum amount of magic currently available, begin is the current mana level, and end is the desired mana level. Assuming the game is running at normal speed, the result is in minutes.

Optimal magic levels Edit

Spells can be repeatedly cast as long as there is enough magic in the magic bar to cast it. For every spell, there is an optimal value of maximum magic (the maximum amount of magic your magic bar can hold) that will allow the magic to regenerate in the shortest amount of time. These values and times are recorded in the table below. Some spells have useless maximum magics, like the impossible 7 of Conjure Baked Goods or the insanely large 99 of Haggler's Charm and Resurrect Abomination, so good alternatives have been listed as well.

Name Optimal Max Magic Cost to Cast Time Until Recharged
Conjure Baked Goods 7 3 305 seconds
9 4 333 seconds
12 6 338 seconds
Force the Hand of Fate 33 29 1248 seconds
38 32 1238 seconds
43 35 1243 seconds
Stretch Time 44 16 447 seconds
49 17 448 seconds
54 18 449 seconds
Spontaneous Edifice 93 89 2548 seconds
97 92 2538 seconds
101 95 2546 seconds
Haggler's Charm 79 17 338 seconds
89 18 336 seconds
99 19 335 seconds
Summon Crafty Pixies 54 20 506 seconds
59 21 506 seconds
64 22 506 seconds
Resurrect Abomination 89 28 541 seconds
99 29 528 seconds
109 30 540 seconds
Diminish Ineptitude 24 9 342 seconds
29 10 342 seconds
34 11 345 seconds

Optimal magic levels

The graph with more information can be found here.

With this information, we can see that casting Haggler's Charm with 99 max magic is the fastest way to cast spells, but casting Conjure Baked Goods with low max magic is a good alternative while remaining useful in getting cookies.


Icon Name Description ID
Bibbidi-bobbidi-boo Bibbidi-bobbidi-boo Cast 9 spells. 321
ImTheWiz I'm the wiz Cast 99 spells. 322
A wizard is you A wizard is you Cast 999 spells.

"I'm a what?"

  1. Flavour text - "What's that spell? Loadsamoney!" # A reference to the song Loadsamoney (Doing up the house) by Harry Enfield, featuring the lines "Whats that spell? Loadsamoney, probably"


  • The description "I'm a what?" is a reference to Harry Potter.
  • "I'm the wiz" is a reference to a character in the Seinfeld episode "The Junk Mail"
  • Bibbidi-bobbidi-boo is a reference to Disney's Cinderella.
  • "A wizard is you" is a reference to "A winner is you," a meme from Nintendo Pro Wrestling.
  • Conjure Baked Goods gives a base amount of cookies of 7 when used at a CPS of 0. The only way to get this is through the use of it during a Cursed Finger Wrath Cookie effect, due to always having CPS above 0 when using the spell (it is required to own Wizard Towers in order to use spells), but Cursed Finger sets your CPS to 0 for the duration of the effect.
  • Golden Cookies spawned from the Force the Hand of Fate spell are glitched - Cookie Chains don't usually go beyond the initial cookie, using the spell (regardless of outcome or effect) during a cookie chain will cause the next Golden Cookie in the chain to give a different effect (such as a Frenzy, Lucky or Clot if Wrath), and "Lucky" can give less than 15 minutes worth of cookies, even when owning sufficient cookies for 15 minutes worth to be the lower value, giving as low as 1 minute's worth of cookies. These are also not counted in "Golden cookie clicks" on the stats page and can not unlock the Golden Cookie upgrades.
  • If you happen to backfire, you can reload the page (or use "save to file" before casting and load from file after backfire) to basically turn back time (if you haven't saved). The game probably won't have been saved so it will load the page with your magic refunded and it will seem like you haven't cast a spell at all. This may be considered cheating, so don't use this if you aren't willing to deal with the consequences. Or else. They're watching you.