Dinners

Cookie Clicker Sugar Lumps Cheat: Fast Guide

Updated · By Stir & Share

Save

Time: 5 min · Serves: 1 player · The key step: Use the built-in console command to add sugar lumps instantly. This page explains the exact code, how to use it safely, and how to avoid breaking your save.

What Sugar Lumps Do

Sugar lumps are a rare resource in Cookie Clicker. You get one every 24 hours of real time, and they are used to upgrade buildings to level 10, unlock certain achievements, and buy special upgrades. Because they are so slow to earn, many players look for a cheat to speed things up.

The game has a built-in console that lets you modify almost anything. You can add sugar lumps, change your cookie count, or unlock achievements. The console is the same one your browser uses for developers, and Cookie Clicker intentionally leaves it open for players to experiment.

How to Open the Console

Open Cookie Clicker in your browser. Press F12 (or Ctrl+Shift+I on Windows, Cmd+Option+I on Mac) to open the developer tools. Click the Console tab. If you do not see a Console tab, look for a menu labeled “Console” or press Esc to open the console drawer. The exact labels can differ by browser and version.

Once the console is open, you can type JavaScript commands. The game’s global object is called Game, and it holds all your save data. You will use Game to add sugar lumps.

The Cheat Command

To add sugar lumps, type the following command and press Enter:

Game.gainLumps(10)

This adds 10 sugar lumps to your current total. You can replace 10 with any number. For example, Game.gainLumps(100) adds 100 lumps. The lumps appear instantly and are saved when the game autosaves.

If you want to set a specific number of lumps (for example, exactly 5), use:

Game.lumps = 5

This overwrites your current lump count. Be careful: if you set it to a lower number, you will lose lumps.

You can also check your current lump count with:

Game.lumps

This prints the number in the console.

Why These Commands Work

Cookie Clicker stores your sugar lumps in the Game.lumps variable. The function Game.gainLumps() is a built-in method that adds to that variable and updates the display. Using the console is the same as using a cheat menu, but without any external tools.

What Else Can You Cheat?

The console can also give you cookies, golden cookies, and achievements. Here are the most useful commands:

  • Game.cookies = 1e12 – sets your cookie count to 1 trillion (use scientific notation for large numbers).
  • Game.Earn(1e9) – adds 1 billion cookies to your bank.
  • Game.Unlock('Sugar blessing') – unlocks a specific achievement (replace the name with the achievement’s internal ID).
  • Game.gainGoldenCookie() – spawns a golden cookie immediately.

To find the internal ID of an achievement or upgrade, look at the game’s source code or use a wiki. The names in the console are case-sensitive.

How to Avoid Breaking Your Save

Using the console is safe as long as you do not change values that the game expects to be numbers. For example, setting Game.lumps = 'many' will cause errors. Always use numbers.

If you want to be extra safe, back up your save before cheating. Copy the save code from Options > Export save and paste it into a text file. If something goes wrong, you can import it back.

Does Cheating Disable Achievements?

No. Cookie Clicker does not have an anti-cheat system. You can earn achievements even after using the console. However, some achievements are based on your total lifetime cookies or lumps, so adding them will unlock those achievements immediately. This is fine if you want them, but it may reduce the sense of progression.

If you want to keep the game challenging, only add a small number of lumps, like 10 or 20, to speed up building upgrades without skipping the main gameplay.

Storage and Save Safety

Your game saves automatically every 60 seconds. When you cheat, the new values are saved immediately. If you close the browser before the autosave, you may lose the cheated lumps. To force a save, go to Options > Save or press the save button.

If you ever want to reset your progress, you can use Options > Wipe save. This deletes everything, including cheated lumps.

For long-term safety, export your save regularly, especially after cheating. The export code is a long string of letters and numbers. Store it in a safe place.

Common Mistakes

Typing the command wrong: If you misspell gainLumps or use a capital letter incorrectly, the console will show an error. Copy the command exactly as written.

Using the wrong console: Make sure you are in the Cookie Clicker tab. If you have multiple tabs open, the console may be attached to a different page. Check the top of the console to see which page it is for.

Overwriting your lump count: Using Game.lumps = 5 when you already have 10 lumps will reduce your total. Use Game.gainLumps() to add, not set.

Quick Reference Table

Goal Command
Add 10 sugar lumps Game.gainLumps(10)
Add 100 sugar lumps Game.gainLumps(100)
Set lumps to 5 Game.lumps = 5
Check lump count Game.lumps
Add 1 billion cookies Game.Earn(1e9)

This cheat works on the browser version of Cookie Clicker. The mobile app may not have a console, so this method is for desktop only.

Related

Safe minimum internal temperatures follow USDA FSIS; raw-fish guidance follows the U.S. FDA. See our food safety notes.

Spotted an error? Tell us and we will correct it (corrections policy).