What is the RSI?
The Relative Strength Index, or RSI, is a momentum indicator that says whether a stock has risen too fast or fallen too far. It runs from 0 to 100: above 70 means overbought, below 30 means oversold, and between the two means neutral. With an average gain of 1.2 rupees and an average loss of 0.8 rupees, the RSI is 60, which is neutral.
RSI was created by J. Welles Wilder in 1978 and is one of the most widely used indicators in trading. It compares the size of recent gains with the size of recent losses, usually over 14 periods, and turns that comparison into a single number that can be read at a glance.
The indicator matters because momentum tends to reverse. A stock that has risen sharply for two weeks usually pauses or pulls back, and a stock that has fallen sharply usually bounces. RSI measures how stretched the move is, and traders use it to time entries and exits.
RSI is not a buy or sell signal on its own. A stock can stay overbought for weeks in a strong uptrend, and selling it just because the RSI crossed 70 loses money. The indicator is a warning, not an order, and it works best with other evidence.
How the RSI formula works
The formula has two steps. First, find the relative strength, RS, which is the average gain divided by the average loss. With an average gain of 1.2 and an average loss of 0.8, RS is 1.5. Second, convert RS to RSI: 100 minus 100 divided by one plus RS. With RS of 1.5, that is 100 minus 100 divided by 2.5, which is 100 minus 40, giving an RSI of 60.
The averages are usually Wilder's smoothed averages over 14 periods, which weight recent moves more than a simple average would. This calculator takes the averages directly, so you can enter the average gain and loss from your own chart or data, and it applies the same formula.
The 70 and 30 levels are conventions, not laws. Some traders use 80 and 20 for stronger signals, and some use 70 and 30 only in sideways markets. The RSI itself is exact; the interpretation is a choice. A percentage calculator can check the RS division by hand if you want to verify a result.
Average gain and loss: the numbers people get wrong
The most common error is using the wrong period. Wilder's RSI uses 14 periods, usually 14 days, and using 5 days or 50 days gives a very different RSI. Shorter periods make the RSI jumpier, longer periods make it smoother, and the standard 14 is the one most traders watch.
The second error is using simple averages instead of Wilder's smoothing. Wilder's method updates the average by adding the latest gain or loss to the previous average, which gives recent moves more weight. A simple average of the last 14 gains gives a different number, and the difference matters near the 70 and 30 levels.
The third error is entering gains and losses in the wrong units. The averages must be in the same units, such as rupees per day, and they must be the average size of up moves and down moves, not the total. A total gain of 12 rupees over 10 up days is an average gain of 1.2, and that is the number to enter.
The fourth error is forgetting that RSI needs both numbers. An average loss of zero means the stock only rose, and the RSI is 100, which is correct, not an error. This calculator handles that case: if the average loss is zero, the RSI is 100 and the signal is overbought.
A worked example: average gain ₹1.20, average loss ₹0.80
Take the default example on this page. The average gain is 1.2 rupees and the average loss is 0.8 rupees. RS is 1.2 divided by 0.8, which is 1.5. RSI is 100 minus 100 divided by 2.5, which is 100 minus 40, giving 60. The signal is neutral, because 60 sits between 30 and 70.
Now a second case: an average gain of 2.5 rupees and an average loss of 0.5 rupees. RS is 2.5 divided by 0.5, which is 5. RSI is 100 minus 100 divided by 6, which is 100 minus 16.7, giving 83.3. The signal is overbought, because 83.3 is above 70, which means the stock has risen far more than it has fallen.
Now a third case: an average gain of 0.9 rupees and an average loss of 1.8 rupees. RS is 0.9 divided by 1.8, which is 0.5. RSI is 100 minus 100 divided by 1.5, which is 100 minus 66.7, giving 33.3. The signal is neutral, because 33.3 sits just above 30, though it is close to oversold.
The three examples show the range. Gains that are 1.5 times the losses give a neutral 60, gains five times the losses give an overbought 83.3, and losses twice the gains give a near-oversold 33.3. The RSI compresses the whole comparison into one number between 0 and 100.
Who uses an RSI calculator
Day traders use RSI to time entries. A stock that pulls back to an RSI of 30 after a rise is often a buying opportunity, while one that rallies to 70 after a fall is often a selling opportunity. The calculator turns the average gains and losses into the number to watch.
Swing traders use RSI divergence: when the price makes a new high but the RSI makes a lower high, the momentum is fading, and a reversal may be near. Divergence is one of the most trusted signals in technical analysis, and it starts with the RSI number itself.
Investors use RSI to avoid buying at the top. A stock with an RSI above 80 has risen very fast, and buying it then usually means buying just before a pullback. Waiting for the RSI to cool below 70 often gives a better entry, even if the price is slightly higher.
Crypto and forex traders use the same indicator, because momentum works the same way in every market. A ROI calculator can then show what a trade entered on an RSI signal is worth if the price moves as expected.
RSI vs MACD: what is different
RSI measures momentum on a fixed scale from 0 to 100, while MACD measures the difference between two moving averages and has no fixed scale. RSI says how stretched a move is; MACD says whether the trend is speeding up or slowing down. The two answer different questions, and traders often use both.
Use RSI to judge overbought and oversold conditions, and MACD to judge trend changes and crossovers. A stock with an RSI of 75 and a MACD that is still rising is overbought but still in an uptrend, while one with an RSI of 75 and a MACD that is falling may be about to reverse.
The two also fail differently. RSI fails in strong trends, where it stays overbought for weeks, and MACD fails in sideways markets, where it crosses back and forth without meaning. Neither is a system on its own, and traders who rely on one indicator alone usually learn that the hard way.
Common RSI mistakes
The first mistake is selling just because RSI crossed 70. In a strong uptrend, RSI can stay above 70 for weeks, and selling on the cross loses the rest of the move. Wait for the RSI to turn down, or for the price to confirm, before acting on an overbought reading.
The second mistake is buying just because RSI crossed below 30. In a strong downtrend, RSI can stay below 30 for weeks, and buying on the cross catches a falling knife. Wait for the RSI to turn up, or for the price to confirm, before acting on an oversold reading.
The third mistake is using RSI in the wrong market. RSI works best in sideways and mildly trending markets, and worst in strong trends and during news events. Check the market type first, then decide whether the RSI reading means anything.
The fourth mistake is ignoring divergence. A price that makes a new high while RSI makes a lower high is a warning that momentum is fading, and it is often more useful than the RSI level itself. Watch the direction of RSI, not just its value.
How to use this RSI calculator
Enter the average gain and the average loss over your chosen period, usually 14 days, in the same units, such as rupees per day. The results update instantly: the RSI, the RS value, and the signal, overbought above 70, oversold below 30, and neutral in between.
Use the RSI with other evidence: a trend line, a support level, or volume. A CAGR calculator can show the annual return of a strategy that trades on RSI signals, so you can judge whether the signals are worth following. Never trade on RSI alone.
Everything runs in your browser. No account, no sign-up, no data sent anywhere. Your numbers never leave your device. Calculate the RSI, watch it with other evidence, and remember that no indicator can predict the market.
One last habit: note the RSI at the same time every day, such as the close, so the readings are comparable. An RSI taken at noon and one taken at the close describe different moments, and comparing them is like comparing two different indicators.