What is Nifty 50 and How to calculate it?

Step-by-step explanation of calculation of Nifty 50 other popular indices like BANK NIFTY, NIFTY MIDCAP and FINNIFTY.
What is Nifty 50 and How to calculate it?

Introduction

In this article, I will present to you a detailed understanding of what Nifty 50 is and more importantly how to calculate it step by step. I will also extend this methodology to another popular index, Bank Nifty.

You may have traded Nifty for most of your trading life but there is a high probability that trivial questions like how it’s calculated never would have occurred or some of you have attempted but not got enough clear answers. I will attempt to solve this mystery with a very simple approach which I must confess I discovered after an extensive online search.

What is Nifty 50?

Nifty is the premier indicator (let’s call it Index) of the stock markets of India, specifically the NSE. It has surpassed Sensex, an index of BSE in popularity and trading volume. So, what is an index? In simple terms, it’s just the average value of stocks. Obviously for Nifty, as its name suggests it will have 50 stocks chosen from 13 sectors of the economy.

There are multiple reasons why bourses create indices but the most important one is, that it is a simple indicator of market direction. Imagine Nifty as a wind direction indicator. With one look at it, you can gauge the direction of the market whether it’s up or down or flattish. No need for complex mathematics or information overload of knowing data of all stocks that are trading at that moment. It is a super quick way.

Standardized indices also serve as benchmarks to assess the portfolio performance. As an investor, you have infinite ways to invest your money and construct a portfolio by choosing various combinations of stocks or derivatives and the quantity or weight of stocks. Indices help you to measure the performance of the portfolio in a standardized way. Moreover, indices also allow one to create a portfolio that will track them without the need of complicated stock picking methods e.g. you can construct a portfolio of stocks that are part of Nifty and in exact proportions. This portfolio will almost match the returns of Nifty. (assuming you will rebalance this portfolio periodically as per Nifty).

History of Nifty

Nifty was created in November 1995 with a base value of 1000 and a market capitalization of ₹ 2.06 trillion (remember this value !!!) and as of Dec 2023, Nifty has surpassed 21000. You can read the interesting article available on the NSE website to know more about how Nifty has traversed this path. I will present a couple of facts that I found interesting.

# Fact 1

Nifty 50 collectively represents approximately 52% of the total full market capitalization and around 63% of the free float market capitalization of listed stocks on the NSE, based on a 6-month average as of June 30, 2023.

What this means is that NIFTY and its constituents dominate the trading volume.

# Fact 2

There are only 12 firms that have been part of NIFTY since its inception.

Interestingly this pack does not include any of IT companies like TCS and Infosys.

Method of Calculating Index

Before we delve into the NIFTY calculation methodology let’s briefly understand the popular methods by which the Index is calculated.

1. Market Capitalization Weighted

Overview: This is one of the most common methodologies, where the index components are weighted based on their market capitalization. The index value is more profoundly influenced by larger companies.

Calculation: Index value = Σ (Price of stock * Number of outstanding shares) / Divisor

Pros:

  • Reflects Market Dynamics: This method aligns with the market’s valuation of companies, giving more weight to larger companies, which are often considered more significant in the economy.
  • Ease of Implementation: Simple to implement, as it only requires market capitalization data.

Cons:

  • Overemphasis on Large Caps: It can lead to overemphasizing the influence of a few large-cap stocks, potentially neglecting the performance of smaller companies.
  • Vulnerability to Market Swings: The index is more sensitive to price movements in high-market-cap stocks.

S&P 500 (Standard & Poor’s 500) index is calculated using this methodology

2. Price Weighted

Overview: In this method, the index value is influenced by the absolute price of each stock, irrespective of market capitalization. Stocks with higher prices carry a greater influence on the index.

Calculation: Index value = Σ (Price of each stock) / Divisor

Pros:

  • Simple Calculation: The calculation is straightforward, as it involves adding up the prices of individual stocks.
  • Reflects Absolute Price Movements: This gives more weight to stocks with higher absolute prices, which may be suitable for certain investment strategies.

Cons:

  • Distorted Representation: Ignores the market capitalization, potentially leading to a distorted representation of the overall market.
  • Impact of Stock Splits: Stock splits can significantly impact the index value.

Dow Jones Industrial Average (DJIA), one of the oldest and most popular indices, uses this methodology for its calculations.

3. Equal Weighted

Overview: All index components are given equal weight, regardless of their market capitalization or stock price.

Calculation: Index value = Σ (Price of each stock) / Number of stocks

Pros:

  • Diversification: Provides a more diversified market representation by giving equal weight to all stocks.
  • Small-Cap Emphasis: Highlights the performance of smaller companies, which may be overlooked in market capitalization-weighted indices.

Cons:

  • Lack of Consideration for Size: Ignores the size or significance of companies, potentially giving too much weight to smaller, less impactful stocks.
  • Higher Turnover: Rebalancing may result in higher turnover and transaction costs.

Methods like Fundamental Weightage are also used to create indices for specific purposes.

NIFTY 50 Calculation Methodology

The computation of the Nifty 50 using the free float methodology commenced on June 26, 2009. There is an article on the NSE website that mentions the below formula on page 203 for NIFTY calculations.

Index Value = Index Market Capitalization / Base Free Float Market Capitalization of index * Base

Where,

Index Market Capitalization = Shares outstanding * Price * IWF * Capping factor

The same article, on page 191, explains what IWF means. It is the percentage of the total stock that is available for the public to invest or trade in. There are details of which categories are classified as public and which are not. Readers who are interested in the same can go through the article.

However, neither that article nor any of the websites shown on Google’s top search results (till this blog is published) gives data for IWF for each stock. It’s not available easily on the Internet.

So, I attempted the approach of calculating the free float market cap of all stocks in Nifty. You can easily find the market cap and free float market cap on the NSE website. Free float percentage can also be approximated using annual reports, but this method is tedious.

Sample data for Reliance and ICICI is given below as a reference.

Reliance Data

ICICI Data

Data for Market Cap as of December 31st, 2023, for all 50 stocks is tabulated below

Company NameMarket CapitalFree FloatPercentage of Free Float
Adani Enterprises Ltd.32,479,201.947,470,216.4523%
Adani Ports and Special Economic Zone Ltd.22,098,221.417,513,395.2834%
Apollo Hospitals Enterprise Ltd.8,207,228.225,745,059.7670%
Asian Paints Ltd.32,562,366.9815,304,312.4847%
Axis Bank Ltd.33,927,293.6530,534,564.2890%
Bajaj Auto Ltd.19,312,859.367,725,143.7440%
Bajaj Finance Ltd.45,208,388.0820,343,774.6445%
Bajaj Finserv Ltd.26,931,851.169,156,829.4034%
Bharat Petroleum Corporation Ltd.9,783,329.884,304,665.1544%
Bharti Airtel Ltd.57,904,333.3426,056,950.0045%
Britannia Industries Ltd.12,864,293.956,303,504.0449%
Cipla Ltd.10,091,879.986,559,721.9865%
Coal India Ltd.23,184,183.978,578,148.0737%
Divi’s Laboratories Ltd.10,375,043.044,980,020.6648%
Dr. Reddy’s Laboratories Ltd.9,681,617.407,067,580.7073%
Eicher Motors Ltd.11,312,403.665,656,201.8350%
Grasim Industries Ltd.14,041,091.247,863,011.1056%
HCL Technologies Ltd.39,836,603.6115,536,275.4139%
HDFC Bank Ltd.129,721,283.17128,424,070.3399%
HDFC Life Insurance Company Ltd.13,897,562.446,809,805.5949%
Hero MotoCorp Ltd.8,287,321.365,386,758.8965%
Hindalco Industries Ltd.13,803,527.498,972,292.8765%
Hindustan Unilever Ltd.62,492,078.8023,746,989.9438%
ICICI Bank Ltd.70,033,330.5570,033,330.55100%
ITC Ltd.57,637,312.0640,922,491.5771%
IndusInd Bank Ltd.12,411,827.8910,550,053.7185%
Infosys Ltd.64,026,879.1955,063,116.1086%
JSW Steel Ltd.21,471,085.828,373,723.4739%
Kotak Mahindra Bank Ltd.37,842,604.3528,003,527.2274%
LTIMindtree Ltd.18,585,032.755,761,360.1531%
Larsen & Toubro Ltd.48,384,100.6941,610,326.5986%
Mahindra & Mahindra Ltd.21,450,872.3315,444,628.0872%
Maruti Suzuki India Ltd.32,389,281.5713,603,498.2642%
NTPC Ltd.30,108,148.3514,752,992.6949%
Nestle India Ltd.25,688,039.219,504,574.5137%
Oil & Natural Gas Corporation Ltd.25,852,473.778,014,266.8731%
Power Grid Corporation of India Ltd.22,009,878.9410,784,840.6849%
Reliance Industries Ltd.175,028,273.6787,514,136.8350%
SBI Life Insurance Company Ltd.14,338,760.956,452,442.4345%
State Bank of India57,269,234.7824,625,770.9643%
Sun Pharmaceutical Industries Ltd.30,232,820.2913,604,769.1345%
Tata Consultancy Services Ltd.137,487,325.6838,496,451.1928%
Tata Consumer Products Ltd.10,116,936.876,576,008.9665%
Tata Motors Ltd.25,898,270.4113,726,083.3253%
Tata Steel Ltd.17,130,184.7811,305,921.9666%
Tech Mahindra Ltd.12,424,620.457,951,757.0864%
Titan Company Ltd.32,722,910.0715,379,767.7347%
UPL Ltd.4,411,321.112,955,585.1467%
UltraTech Cement Ltd.30,261,147.5712,104,459.0340%
Wipro Ltd.24,595,701.366,640,839.3727%
Total1,707,812,339.59949,796,016.1756%

The total free float market cap as per this table is 94,97,96,016.17 (₹ Lakhs). Let’s try to calculate the index with this value by dividing it by 2.06 trillion (the number that I told you to remember) and multiplying by 1000 for base adjustment.

(94,97,96,016.17 * 1,00,000/ 2.06 *1,000,000,000,0000 ) *1000 = 46106.60

But this is not the current Nifty value. So you may be wondering where did we go wrong.

Let’s try to calculate what should have been the actual divisor based on the current value of NIFTY

Divisor = 94,97,96,016.17 * 1,00,000 / 21,731.40 (NIFTY Closing value as on 31st Dec 2023)

Divisor = 43,70,615,865

This is a mysterious number. There is hardly any direct reference available on the Internet. So next section will show a way to find this number as well as data for IWFs.

True Method for NIFTY 50 Calculation

How to find IWFs of NIFTY 50

Courtesy of this YouTube video, I found the method which helps to find IWFs and divisor which we calculated earlier. It involves fetching data from API calls exposed on the website.

Step 1: visit the link https://www.niftyindices.com/market-data/index-movers.

Step 2: Go to Developers Tools of your browser (Ctrl + Shift + I for Chrome) and search for the Network tab.

Step 3: Find the query as shown in the below screenshot and right-click on it to copy the link address.


Step 4: go to “https://data.page/json/csv” and paste the link as shown in the picture below.

You may also use any of the other JSON converters or power query to transform data that can be used in Excel.

Step 5: Import converted data in Excel. The illusive divisor value, as shown in the image, is available in the data.

Now with this data, let’s attempt to calculate the index…

The formula for calculating Index

Free float market capitalization = Sum(Last traded price * Shares outstanding * IWF * Capping Factor)

Index = Free float market capitalization /Divisor

Using a divisor value of 43,71,42,1167 as per data, the calculated NIFTY 50 value is 21727.40 which is slightly different due to closing adjustments and rounding off errors.

To cut the efforts of recreating the data fetching mechanism, I have created an Excel sheet that has all the queries to fetch data using power query. This Excel sheet has calculations for NIFTY 50 as well as for other popular indices like BANKNIFTY, NIFTY MIDCAP, and FINNIFTY along with a heatmap for Index constituents (a small bit of VBA coding is implemented to get the color coding).

You can download this Excel for free from here.

This precious data source not only helps to get IWFs and Capping factors but also helps to understand which stock and sector influences NIFTY or other indices most. I will leave this bit for readers to calculate.

I trust this article has demystified the intricacies of calculating the NIFTY 50. Your feedback and comments are appreciated.

One comment

Leave a Reply

Your email address will not be published. Required fields are marked *