Fibonacci Retracement Formula

The mathematical formulas for calculating Fibonacci retracement and extension levels.

The Formula

Level = High - (High - Low) x Ratio
Ratios: 0.236, 0.382, 0.500, 0.618, 0.786

Worked Example

Fibonacci Example (Uptrend)

High: $2,700, Low: $2,600, Swing: $100
23.6% level = 2700 - (100 x 0.236) = $2,676.40
38.2% level = 2700 - (100 x 0.382) = $2,661.80
61.8% level = 2700 - (100 x 0.618) = $2,638.20

Python Implementation

from gfil_calculators.position_size import calculate_fibonacci_retracement
result = calculate_fibonacci_retracement(2700, 2600, 'long')
print(result)  # Returns all retracement levels

Try the Interactive Calculator

Free, no signup required

Open Calculator