What Is the Gann Square of 9? The Formula and the Scaling
What is the Gann Square of 9? The number spiral, the square-root formula, the four published rays confirmed, and the scaling choice that moves the levels.
The Gann Square of 9 is a spiral of whole numbers, 1 in the centre and the rest winding outward, used to turn one anchor price into a ladder of candidate support and resistance levels. You take the square root of the anchor price, add a fixed amount for the angle you want to rotate, then square the result back into a price.
The arithmetic is settled and anyone can reproduce it. The two choices you make before the arithmetic runs are not. You pick which price to anchor on, and you pick what scale to write that price in. The scaling choice gets almost no attention, and on EUR/USD it moves the 45 degree level from 0.48% above the anchor to 53.76% above it. That is a factor of 112 from the same anchor at the same angle, and nothing in the method picks between them.
What is the Gann Square of 9?
It is a grid of numbers arranged as a spiral: 1 sits in the middle, and 2, 3, 4, 5 and so on wind outward one cell at a time. Gann Academy puts it plainly: "The number 1 is in the middle. Then 2, 3, 4, 5, and so on spiral outward in a clockwise direction."
Each completed ring of the spiral is one full turn of 360 degrees. Because the numbers wrap around a centre, you can treat the distance between two of them as an angle. Gann Academy again: "This lets you measure the distance between two prices in degrees, like measuring an angle on a circle."
The wheel is attributed to W.D. Gann, an American trader who sold courses and calculators in the first half of the twentieth century. LuxAlgo is careful about what survived him: "he left no definitive published manual for it, so modern usage is a reconstruction assembled by later students of his work, and versions differ." The same page is equally careful about the folklore around his results, saying that "Stories about Gann's own trading results are largely promotional and contested, so the tool is best judged on what it demonstrably does".
What is the Gann Square of 9 formula?
Take the square root of the anchor price, add A divided by 180 for a rotation of A degrees, then square the result. LuxAlgo writes the step as "Rotate up for resistance: r' = r + A / 180", with r the square root of the anchor, and states the size of the increment:
"Moving one full 360-degree rotation out along the spiral adds 2 to a number's square root, so a 180-degree step adds 1, 90 degrees adds 0.5, and 45 degrees adds 0.25"
So the ladder above an anchor price P is:
- 45 degrees: (sqrt(P) + 0.25) squared
- 90 degrees: (sqrt(P) + 0.5) squared
- 180 degrees: (sqrt(P) + 1) squared
- 360 degrees: (sqrt(P) + 2) squared
Subtract instead of add for the levels below. With round numbers, as an example only: an anchor of 100 has a square root of 10, so the 45 degree level is 10.25 squared, or 105.0625. The 90 degree level is 10.5 squared, or 110.25. The 180 degree level is 11 squared, which is exactly 121, and the 360 degree level is 12 squared, or 144.
The rule approximates the spiral rather than describing it. On the actual grid, the numbers along one ray are 2, 11, 28, 53, 86, 127, 176, 233. The gaps between them are 9, 17, 25, 33, 41, 49, 57, and the differences between their square roots are 1.902, 1.975, 1.989, 1.994, 1.996, 1.997, 1.998. They approach 2 and never reach it. A full rotation adding 2 to the square root is exact only in the limit, and LuxAlgo says as much in its own words, that moving one ring outward adds about 2.
Is the Square of 9 in ChartLabs?
Yes. Gann Square of 9 is one of our built-in indicators. Open the chart's Indicators menu, go to the Standard list, and look under the Levels & Sessions heading. It draws the ladder as horizontal lines on the price pane itself, each one labelled with its angle, and it re-anchors every period instead of holding one anchor forever.
It opens on the previous day's close, with an Angle Step of 45 degrees, 4 levels each side and Price Scale set to Auto, over the last 15 periods. Those are the two free choices this article is about, which is why they are settings in front of you rather than numbers decided for you. The next section says why the scaling one deserves that attention, and what Auto does to the price is spelled out further down.
Why the same anchor gives different levels
Because the formula works on the square root of the price, the size of every step depends on how large the price number is. Write EUR/USD as 1.0850 and a 45 degree rotation is a move of more than half the anchor. Write the same price as 10850 points and the same rotation is half of one per cent.
The closed form shows why. A price P written at scale s gives a level of (sqrt(sP) + A/180) squared, divided by s, which works out to P, plus 2 times A over 180 times sqrt(P/s), plus a small term. The step shrinks with the square root of s: multiply the scale by 100 and the move divides by about 10.
The same anchor, the same four angles, and four ways of writing the price that a trader could reasonably pick. The numbers are the move from the anchor to the level:
| The anchor written as | 45 degrees | 90 degrees | 180 degrees | 360 degrees |
|---|---|---|---|---|
| 1.0850 | +53.76% | +119.04% | +284.17% | +752.68% |
| 108.50 | +4.86% | +9.83% | +20.12% | +42.09% |
| 10850 points | +0.48% | +0.96% | +1.93% | +3.88% |
| 108500 | +0.15% | +0.30% | +0.61% | +1.22% |
The published sources hand that choice to the reader. LuxAlgo says "Low or high-priced instruments are usually rescaled by a power of ten first so the increments are meaningful", and separately that "Anchor choice and decimal scaling are discretionary, so published levels differ between practitioners". Market Bulls asks you to enter a pip value and says "This value determines the increment used by the calculator to generate the Gann numbers". GannTrader's software is the most explicit of the three: "You have the ability to change both the increments and the starting value to anything of your choice".
None of them puts a number on what the choice costs.
How narrow does the choice get? Our own measurement
We ran the formula against our own EUR/USD data, 1-minute candles aggregated to daily bars, January to August 2026, 208 daily bars, and compared the size of a 45 degree step with the range the pair actually travels in a day.
Over that window the median daily range was 0.00510 and the mean mid price 1.16235. At the quoted scaling a 45 degree step is about 0.60 of a dollar, roughly 118 median days of range, which is not a level any swing trader would use. Multiply the price by 10,000, the pip scaling, and the same step is about 1.06 median days, which is usable. Solving for the scaling that makes a 45 degree step equal exactly one median daily range gives about 11,200.
GER40, the German index, over the same window, 207 daily bars with a median daily range of 291.72 points, runs the other way. At its own quoted scaling a 45 degree step is 0.27 of a median day, so it is too tight to mark anything, and it needs the price multiplied by about 0.073, which is dividing by about fourteen, to reach one day. The two scalings sit roughly five orders of magnitude apart. No single rescaling rule anyone could publish fits both instruments.
LuxAlgo does get close to this. Its own FAQ calls the anchor "the method's biggest degree of freedom; two analysts with different anchors get different ladders". Our numbers say the scaling has the same claim on your attention.
Does the Gann Square of 9 work?
The method does not produce one level to test until you have fixed both choices, and the two choices move the level by two orders of magnitude. Before you can ask whether a level held, you have to say which level you meant.
LuxAlgo's FAQ answers the question directly:
"There is no verified mechanism, and no honest way to claim they work in general. The wheel produces many levels across every rotation, so price will inevitably touch some, which makes anecdotal confirmation cheap."
Its advice from the same answer is to "mark levels in advance and log the reactions, demand confluence with independent analysis, and size as if any level can fail, because many do". Gann Academy makes the same point about the number of levels from the other direction, warning that beginners calculate every angle from every starting point and telling them instead to "Start with one or two significant starting points and focus on the major angles: 90, 180, and 360 degrees".
We publish no success rate for this method, and historical accuracy claims about Gann's own forecasting carry no sample, period, instrument or method behind them. Treat them as folklore.
What are the Gann angles, and which numbers sit on them?
The angles are rays drawn out from the centre of the spiral, and the numbers that land on each ray are treated as related. TradingSim and TrinityChart both print the same four lists:
- 0 or 360 degrees: 2, 11, 28, 53
- 45 degrees: 3, 13, 31, 57, 91
- 90 degrees: 4, 15, 34, 61, 96
- 180 degrees: 6, 19, 40, 69
We built the spiral cell by cell, 289 cells, and read the rays off it. Every published value is correct. Both lists stop after four or five numbers, so each ray continues: 86, 127, 176, 233 on the 0 degree ray; 133, 183, 241 on the 45; 139, 190, 249 on the 90; and 106, 151, 204, 265 on the 180. The grid itself is sound.
LuxAlgo's claim about the squares also holds. It says numbers on the cardinal and diagonal crosses act as natural levels, "including the odd squares 9, 25, 49 on one diagonal", and on our spiral 9, 25, 49, 81, 121, 169, 225 and 289 sit at exactly the diagonal cells, one per ring.
The even squares are the one place to be careful. GannTrader writes that "Starting at 4, the first even square, you can see all the subsequent even squares heading Northeast 45" and that the odd squares head the opposite way from 1. Read as a statement about a line, the first half is true: 4, 16, 36, 64, 100, 144, 196 and 256 are collinear and they do run at 45 degrees. Their line misses the centre of the spiral by one cell, though, so they do not sit on a ray out of the anchor the way the odd squares do, and the two lines are parallel rather than opposite halves of one diagonal. Ring k begins just after (2k-1) squared, and its four corners are that square plus 2k, plus 4k, plus 6k and plus 8k. An even square (2k) squared equals (2k-1) squared plus 4k minus 1, so it always lands exactly one cell short of a corner.
What is a Gann box, a Gann fan, a Gann time cycle?
They are separate tools that share an author. LuxAlgo's FAQ draws the line in one sentence: "Gann fans and angles are diagonal lines drawn on the chart at fixed price-per-time slopes, such as the 1x1", while "The Square of 9 is a numeric wheel that outputs horizontal prices, and dates, from an anchor."
So a Gann fan gives you sloping lines and the Square of 9 gives you horizontal prices. A Gann box is a third tool again, listed separately from the fan in the same library. ChartLabs has a Gann Box among its drawing tools, which you place on the chart by hand; it is a separate object from the wheel this article is about.
Time cycles are the part of this method that reaches past price. The same wheel gets read against calendar dates as well as prices, and Gann Academy treats the two as a pair, saying the importance of a level increases when price reaches it as a time cycle completes. The free choices apply at least as strongly there, and nobody has put a number on that one.
Square of 9 or Fibonacci retracement?
A Fibonacci retracement level is a fixed fraction of a swing you measured, so rewriting the price in different units does not move it. A Square of 9 level is built from the square root of a single price, so rewriting the price does move it.
Both depend on where you start. LuxAlgo makes the same point comparing the wheel with a trendline: "A trendline is drawn from two or more actual pivots and evolves with the swing structure; the Square of 9 needs one anchor and a formula. Both depend heavily on the operator's choice of starting points."
What the Square of 9 calculators ask you for
Four published tools generate the ladder for you, and what each one asks you to supply tells you where the free choices live.
| Tool | What you set | What its own page says |
|---|---|---|
| LuxAlgo Square of 9 indicator | anchor price, decimal shift, the standard angles from 45 to 360 | states the increment as A divided by 180, and that anchor and scaling are discretionary |
| GannTrader software | the starting value and the increments, plus overlay angles | lets you change both "to anything of your choice", even a negative number |
| Market Bulls calculator | market price and a pip value | the pip value "determines the increment used by the calculator" |
| TrinityChart calculator | market price | works on the integer grid, adding and subtracting 2 from the square root |
Which one fits whom: if you want to see the arithmetic and the angle definitions, LuxAlgo's page states both. If you want to change the spiral itself rather than just the anchor, GannTrader's software is built for that. If you only want a ladder of numbers quickly, either calculator produces one, as long as you write down the pip value you typed, because that value is the scaling choice in disguise.
How would you test a Square of 9 level in a backtest?
Write both choices down before you start, then do not touch them. The anchor and the scaling are the whole experiment. If you change either one partway through you are testing a different method, and because the scaling can move a level by a factor of 112 you will not notice from the result alone.
LuxAlgo suggests the shape of the test, telling readers to "Audit the output against history: keep the ladder only if past swings show repeated, unprompted reactions near its rungs, and discard anchors that produce a grid the market has ignored". What it leaves out is the record keeping, so a workable version is:
- Pick the anchor and write down which swing it is and the exact price.
- Pick the scaling and write it down as a multiplier, not as a feeling about the instrument.
- Generate the ladder once, before you look at what happened next.
- Step the chart forward bar by bar and log what price did at each rung: no reaction, a touch and continuation, or a reaction that developed.
- Count the rungs that were never touched as well as the ones that were. A method that produces many levels will always have some hits.
ChartLabs is built for step 4. You replay historical charts bar by bar and take practice trades as if the market were live, so the levels are marked before you can see the outcome, and every trade you log captures a snapshot of the chart as it was at entry. The data is sourced from Dukascopy, cleaned to remove anomalies and built into 1-minute candles, which is the data behind the measurements above.
Our built-in Gann Square of 9 is what steps 1 and 2 go into, because it uses the formula above and keeps both free choices in front of you. Anchor is the previous close on the Day timeframe by default, and can also be the previous high or low, the period's open, or a price you type; daily anchors split at 00:00 UTC. Price Scale defaults to Auto, which multiplies the price by the smallest power of ten that puts at least five digits before the decimal point, so EUR/USD at 1.1650 is read as 11650. That is our convention, not Gann's, and you can set the multiplier yourself instead, anywhere from x 0.01 to x 100000. Write down whichever one you used, alongside the anchor. The testing is still your eyes on the replay.
If you are new to running a test like this, our beginner's guide to backtesting a strategy covers the logging side, and forex backtesting covers the session and spread details that matter on EUR/USD specifically.
The short version
- The Square of 9 is a number spiral, and its formula is a square root, an addition of A over 180, and a squaring.
- The four published ray lists are correct. We rebuilt the spiral and confirmed every value.
- Two choices sit in front of the arithmetic: the anchor and the scaling. Both are yours and neither is specified.
- The scaling alone moved the 45 degree level by a factor of 112 on one anchor in our test, and the scaling that makes a step usable differs between two instruments by about five orders of magnitude.
- There is no single level to score until you fix both. Write them down first.
To test a level with the anchor and the scaling fixed before you see the outcome, start a free trial of ChartLabs and step through the chart bar by bar.
Related Topics
Related
Backtesting a Trading Strategy: A Beginner's Guide
What backtesting is, why it matters, and how to run one step by step: defining your rules, choosing clean historical data, stepping through the chart trade by trade, logging results, and reading the metrics that tell you whether your strategy has a real edge.
Forex Backtesting: Test Your Strategy on Real Data
A practical guide to backtesting forex strategies: why session dynamics, spread variation, and pair-specific behavior change your results, what clean historical data actually means, and a five-step process for testing a strategy before you risk real capital.