Fibonacci Retracement Calculator
Retracement levels (23.6% to 78.6%) and extensions (127.2% to 261.8%) for any swing high and low, in an uptrend or downtrend.
OpenCheck the Fibonacci ratios of an XABCD pattern.
Your results
Ratios fit
GartleyD sits at 0.785 of XA and 1.429 times BC.
Harmonic patterns are a set of Fibonacci ratio conventions. A pattern that fits every ratio can still fail, and different books use slightly different ratios. This tool checks math; it doesn't predict prices.
Estimates based on your inputs and the assumptions listed below. Not tax, financial or lending advice. Disclaimer
X to A is the first leg. B, C and D are judged as ratios of the legs before them.
D counts as a fit within 0.03 of the pattern's XA ratio. The zone runs from that XA level to the nearest end of the CD range.
| Pattern | B (of XA) | C (of AB) | D (of XA) | CD (of BC) | D completion zone |
|---|---|---|---|---|---|
| Gartley | 0.618: Fits | 0.382 to 0.886: Fits | 0.786: Fits | 1.13 to 1.618: Fits | $44.28 |
| Bat | 0.382 to 0.50: Doesn't fit | 0.382 to 0.886: Fits | 0.886: Doesn't fit | 1.618 to 2.618: Doesn't fit | $42.28 |
| Butterfly | 0.786: Doesn't fit | 0.382 to 0.886: Fits | 1.27: Doesn't fit | 1.618 to 2.24: Doesn't fit | $34.60 to $38.05 |
| Crab | 0.382 to 0.618: Doesn't fit | 0.382 to 0.886: Fits | 1.618: Doesn't fit | 2.24 to 3.618: Doesn't fit | $27.64 |
XA = $20.00. AB = $12.40, so B = $12.40 / $20.00 = 0.620 of XA. BC = $7.70, so C = $7.70 / $12.40 = 0.621 of AB.
AD = $15.70, so D = 0.785 of XA. CD = $11.00, so CD = 1.429 times BC.
Common reference levels after D: 0.382 of AD = $50.30, 0.618 of AD = $54.00. Many traders watch these as first and second targets.
Where the Gartley is usually treated as failed: Beyond X. A Gartley's D should not pass the start of the pattern.
Short answer
A harmonic pattern is five swing points, X, A, B, C and D, whose legs match set Fibonacci ratios. In a Gartley, B retraces about 0.618 of XA and D completes near 0.786 of XA. Enter your swings to see which pattern's ratios fit and where D would complete. These are conventions and often fail.
With B at 0.620 of XA, C at 0.621 of AB and D at 0.785 of XA, the swings fit a Gartley.
B ratio = AB / XA. C ratio = BC / AB. D ratio = AD / XA. CD ratio = CD / BC. Commonly cited ratios: Gartley B 0.618, D 0.786, CD 1.13 to 1.618. Bat B 0.382 to 0.50, D 0.886, CD 1.618 to 2.618. Butterfly B 0.786, D 1.27, CD 1.618 to 2.24. Crab B 0.382 to 0.618, D 1.618, CD 2.24 to 3.618. C is 0.382 to 0.886 of AB for all four. D zone = from A - D ratio x XA (bullish) to the nearest end of the CD range.
In the commonly cited version, B retraces 0.618 of XA, C retraces 0.382 to 0.886 of AB, CD is 1.13 to 1.618 times BC, and D completes at 0.786 of XA.
Both complete inside the XA leg. A Bat has a shallower B (0.382 to 0.50 of XA) and a deeper D at 0.886 of XA. A Gartley has B near 0.618 and D at 0.786.
In both, D goes past X. A Butterfly completes around 1.27 of XA with B near 0.786. A Crab completes at 1.618 of XA, the deepest of the four, with B between 0.382 and 0.618.
It's where two measurements agree: the XA ratio for D and the range of the CD leg measured from BC. Some traders watch this zone for a reversal. It is not a level price has to turn at.
There's no guarantee. They are trading conventions built on Fibonacci ratios, choosing the swing points is subjective, and many patterns fail. Treat them as one way to describe a chart, not a forecast.
Formulas and figures last checked Nov 5, 2026.
Go deeper
Retracement levels (23.6% to 78.6%) and extensions (127.2% to 261.8%) for any swing high and low, in an uptrend or downtrend.
OpenMeasured-move target, failure level and reward to risk for 27 chart patterns: cup and handle, head and shoulders, double and triple tops, flags, pennants, wedges, triangles, channels, diamonds and more.
OpenEnter open, high, low and close for up to three candles and see which of 24 classic patterns they form, from doji and hammer to engulfing and morning star.
Open