Fibonacci retracement and extension calculator
Enter the swing high and swing low of a move to get the Fibonacci retracement levels (23.6% to 78.6%) and extension levels (127.2% to 261.8%) — for an up move or a down move, on Nifty, Bank Nifty or any stock.
Last updated:
Example values are filled in. For an up move, retracements count down from the high; for a down move they count up from the low. Extensions are measured from the start of the move.
Retracement levels
| Level | Value | From high |
|---|---|---|
| 0% | 1,200.00 | +0.00 (0.00%) |
| 23.6% (below the high) | 1,152.80 | −47.20 (3.93%) |
| 38.2% (below the high) | 1,123.60 | −76.40 (6.37%) |
| 50% (below the high) | 1,100.00 | −100.00 (8.33%) |
| 61.8% (below the high) | 1,076.40 | −123.60 (10.30%) |
| 78.6% (below the high) | 1,042.80 | −157.20 (13.10%) |
| 100% (below the high) | 1,000.00 | −200.00 (16.67%) |
Extension levels
| Level | Value | From high |
|---|---|---|
| 127.2% (above the high) | 1,254.40 | +54.40 (4.53%) |
| 141.4% (above the high) | 1,282.80 | +82.80 (6.90%) |
| 161.8% (above the high) | 1,323.60 | +123.60 (10.30%) |
| 200% (above the high) | 1,400.00 | +200.00 (16.67%) |
| 261.8% (above the high) | 1,523.60 | +323.60 (26.97%) |
These are levels worked out from a formula using the numbers you enter — a calculation, not a forecast, a signal or advice to buy or sell. Nothing you type is stored or sent anywhere. MyAlgoMate provides trading technology, not investment advice.
What Fibonacci retracement is
Fibonacci retracement divides a price move into fixed proportions taken from the Fibonacci sequence — mainly 23.6%, 38.2%, 61.8% and 78.6% — plus the 50% halfway point. Traders draw these lines between a swing low and a swing high to mark how far a pullback has gone back into the move. Extension levels apply the same idea beyond the end of the move.
The levels are proportions of a distance you chose. They don't predict where a pullback or a move will stop, and nothing on this page suggests a trade.
Retracement formula
Move = Swing high − Swing low Up move (low → high): Level = Swing high − Ratio × Move Down move (high → low): Level = Swing low + Ratio × Move Ratios: 0.236, 0.382, 0.5, 0.618, 0.786 (0 and 1 are the two ends)
Extension formula
Up move: Extension = Swing low + Ratio × Move Down move: Extension = Swing high − Ratio × Move Ratios: 1.272, 1.414, 1.618, 2.0, 2.618
These are 2-point extensions, measured from the start of the move. A 3-point (A-B-C) extension projects the same ratios from a third point C instead: for a rise, C + Ratio × (B − A). Many charting tools offer both; check which one yours uses before comparing numbers.
Worked example: a Nifty up move
Say Nifty rose from a swing low of 23,900 to a swing high of 24,700 (illustrative numbers). The move is 800 points.
| Ratio | Level |
|---|---|
| 23.6% | 24,511.20 |
| 38.2% | 24,394.40 |
| 50% | 24,300.00 |
| 61.8% | 24,205.60 |
| 78.6% | 24,071.20 |
The extension levels of the same move are 24,917.60 (127.2%), 25,031.20 (141.4%), 25,194.40 (161.8%), 25,500.00 (200%) and 25,994.40 (261.8%).
Worked example: the same range as a down move
If instead Nifty fell from 24,700 to 23,900, the retracements count up from the low: 24,088.80 (23.6%), 24,205.60 (38.2%), 24,300.00 (50%), 24,394.40 (61.8%) and 24,528.80 (78.6%). The extensions fall below the low: 23,682.40 (127.2%), 23,405.60 (161.8%) and 22,605.60 (261.8%).
Worked example: a stock
A stock that rose from ₹1,400 to ₹1,600 (illustrative) has a ₹200 move. Its retracements are ₹1,552.80 (23.6%), ₹1,523.60 (38.2%), ₹1,500.00 (50%), ₹1,476.40 (61.8%) and ₹1,442.80 (78.6%).
Choosing the swing high and swing low
The levels are only as meaningful as the two points you pick. Use the same chart and timeframe you trade from, and pick the clear low and high of one move — not a random intraday spike. Using the closing prices instead of the wicks, or a different timeframe, gives different levels; neither is wrong, but be consistent.
Fibonacci retracement vs Fibonacci pivot points
They share the ratios but not the inputs. Retracements are drawn between a swing high and a swing low that you choose. Fibonacci pivot points start from the previous period's pivot and add or subtract 38.2%, 61.8% and 100% of that period's range.
Fibonacci levels in Excel or Google Sheets
Swing high in A2, swing low in B2, the ratio in C2 (fill 0.236, 0.382, 0.5 … down the column):
Up move retracement =A2-C2*(A2-B2) Up move extension =B2+C2*(A2-B2) Down move retracement =B2+C2*(A2-B2) Down move extension =A2-C2*(A2-B2)
Limitations
Fibonacci levels are proportions of a past move. Price can stop anywhere or nowhere near them, and different swing points give different lines. Use them as reference levels; trading decisions are yours — MyAlgoMate provides technology, not tips or advice. Related: the Gann Square of 9 calculator and the position size calculator.
Fibonacci levels — questions, answered.
Take the size of the move (swing high − swing low) and multiply it by each ratio — 23.6%, 38.2%, 50%, 61.8% and 78.6%. For an up move, subtract each result from the swing high; for a down move, add it to the swing low. For example, on a move from 1,400 up to 1,600, the 38.2% retracement is 1,600 − 0.382 × 200 = 1,523.60.
Retracement levels lie inside the move you measured — between the swing low and the swing high. Extension levels lie beyond it: 127.2%, 141.4%, 161.8%, 200% and 261.8% of the move, measured from where the move started. Both are ratios of the same distance.
The usual set is 23.6%, 38.2%, 50%, 61.8% and 78.6%. Strictly, 50% is not a Fibonacci ratio — it is the halfway point — but almost every charting tool includes it by convention, so this calculator does too. 61.8% and 38.2% come from the Fibonacci sequence, and 78.6% is the square root of 0.618.
Use the high and low of the move you want to measure — for example the lowest and highest prices of a recent rise, read from the same chart and timeframe you use. Different swing points give different levels, which is why two people's Fibonacci lines on the same chart often don't match.
A 3-point (A-B-C) extension projects the size of the move from A to B forward from a third point, C — usually the end of the pullback after B. Each level is C + ratio × (B − A) for a rise, or C − ratio × (A − B) for a fall. This calculator measures extensions from the start of the move (A); to project from C, add ratio × the A-to-B distance to C yourself, or use the Excel formula on this page.
Put the swing high in A2 and the swing low in B2. For an up move, the retracement at the ratio in C2 is =A2-C2*(A2-B2) and the extension is =B2+C2*(A2-B2). For a down move, the retracement is =B2+C2*(A2-B2) and the extension is =A2-C2*(A2-B2). Fill the ratios 0.236, 0.382, 0.5, 0.618, 0.786 and 1.272, 1.618, 2.618 down column C.
Both charts have a Fibonacci retracement drawing tool: select it, then click the swing low and drag to the swing high for an up move (or high to low for a down move). The levels it draws should match this calculator if you use the same two prices. This calculator is handy when you want exact numbers to type into an order or an alert.
More free calculators
Turn your own rules into automated orders.
Already use these levels in your own rules? MyAlgoMate's algo trading software places the orders your rules call for at 150+ Indian brokers — and TradeBridge turns your own TradingView or Chartink alerts into live orders. You decide the rules; we provide the technology.