How to Optimize Cookie Clicker — Idle Game Math Guide

Cookie Clicker was created by Julien Thiennot (Orteil) in August 2013. It’s an idle game — you click cookies, buy buildings, watch numbers go up. Sounds dumb. Is actually a math optimization problem disguised as a game. Here are the techniques that take you from ‘I have 10 cookies per second’ to ‘I have a trillion cookies per second.’
The basic loop
Click the giant cookie to bake 1 cookie. Use cookies to buy buildings (Cursor, Grandma, Farm, Mine, Factory, etc.). Each building produces cookies passively. More buildings = more cookies per second.
Each building costs ~15% more than the previous one of its type. So Cursor 1 costs 15 cookies; Cursor 2 costs ~17; Cursor 20 costs ~245. The cost grows exponentially.
Optimization principle 1: Compare CPS-per-cookie
Every building has a Cookies Per Second (CPS) and a cost. The most important metric: CPS per cookie spent. Higher is better.
Example: Building A produces 1 CPS for 100 cookies (0.01 CPS/cookie). Building B produces 10 CPS for 1,000 cookies (0.01 CPS/cookie). They’re equivalent at this scale.
As building counts grow, ratios shift. Always buy the building with the BEST CPS/cookie ratio at any given moment.
Optimization principle 2: Upgrades trump buildings (usually)
Each building has upgrade cards (Reinforced Index Finger, Forwards from Grandma) that double or triple that building’s output. These are massive.
Rule of thumb: if an upgrade costs less than 30 minutes of your current CPS, buy it. The break-even is fast.
Optimization principle 3: Golden cookies
Golden cookies appear randomly. Clicking them gives bonus effects: Lucky (+13% of total cookies), Frenzy (CPS ×7 for 77s), Click Frenzy (CPS ×777 for 13s).
Always click golden cookies immediately. Time your big purchases for during Frenzies (more cookies per minute = better purchases).
Optimization principle 4: Buy cheap clickers
Cursor (the basic building) seems insignificant but scales surprisingly well. By late game with all Cursor upgrades, Cursors can be ~5-10% of your total CPS.
Don’t ignore Cursors. Keep them roughly proportional to other buildings.
Optimization principle 5: The hard part is patience
Past the first hour of play, the game becomes mostly idle. Buildings produce cookies in the background. The optimization decisions are: buy now or save up for the next building tier.
Save up for the next building tier when it’s available. Don’t waste cookies on Cursor 100 when Bank 1 (a new tier) is available.
Advanced: Sugar Lumps and Heavenly Chips
After several hours, you unlock Sugar Lumps and prestige mechanics. These compound your gains. The full game has hundreds of upgrades, achievements, and meta-mechanics.
If you want to play seriously, the official Cookie Clicker is on Steam ($4) with much more content than browser-based versions.
Practice
Play our Cookie Clicker. Auto-saves every 5 seconds. Multiple upgrades, generators, and a soft prestige system.








