PipLedger
Today's forex newsNFP, CPI, FOMC and other high-impact eventsEconomic calendarCalendar →

Open interest analysis: OI build-up checker and max pain calculator

Open interest tells you how many contracts are still open, and how that number changes alongside the price says something about who's opening and closing positions. This page has two free tools: one that names the day's OI build-up, and one that works out the max pain strike from your option chain. Both work with numbers you enter; the examples are made up.

By M. A. Horaira. Updated 10 October 2026.

The change in the price of the contract whose OI you enter: the future's price, or the option's own premium (not the Nifty). Negative if it fell.
Positive if open interest rose, negative if it fell.

What today's OI change suggests

—

    Separate the numbers with spaces or tabs (you can paste columns from a spreadsheet). A "-" for no open interest counts as 0. The example rows are made up.

    Max pain strike

    —

      What open interest is

      Every futures or options contract has a buyer and a seller. Open interest (OI) counts the contracts that are still open. When a new buyer and a new seller trade, OI goes up by one. When both close an existing position, it goes down by one. When one side passes their position to someone new, it stays the same. So OI measures how many positions are open, not which way they're betting.

      The four OI build-ups

      PriceOpen interestNameCommon reading
      UpUpLong build-upNew positions opened as the price rises
      DownUpShort build-upNew positions opened as the price falls
      UpDownShort coveringShort sellers buying back
      DownDownLong unwindingBuyers closing their positions

      Traders mostly apply this to futures. For an option, use its own premium, not the Nifty: a put whose premium falls while its OI rises is a short build-up in that put. It's a description of the day, not a prediction: a short build-up can be followed by short covering the next morning. The first tool above names the pattern from two numbers.

      What max pain is

      Max pain is the strike at which, if the index expired there, the options in the chain would be worth the least in total to the people who bought them. The idea behind it is that option sellers collectively gain most at that price. Some traders believe the index tends to drift towards max pain near expiry. There's no reliable evidence that it works as a forecast, and big moves ignore it, but it's a quick summary of where open interest is concentrated.

      The calculation is simple. For every strike S, add up, across the whole chain, call OI × (S − call strike) for calls in the money and put OI × (put strike − S) for puts in the money. The strike with the smallest total is max pain.

      Made-up open interest, in thousands of contracts, to show the arithmetic. The total value is in those units × points.
      StrikeCall OIPut OITotal value if Nifty expires here
      24,70012781,04,200
      24,800189265,800
      24,9003111038,400
      25,0009510425,100 (lowest)
      25,1001204731,700
      25,2001362855,000
      25,300881594,700

      In this example max pain is 25,000, with 25,100 next. The strike with the most call OI is 25,200, which many traders read as resistance, and the strike with the most put OI is 24,900, often read as support. Those readings come from option writers defending their strikes; they can change within hours.

      How to use the tools

      1. OI build-up: enter the day's price change and OI change for the future or option you're looking at.
      2. Max pain: copy the strike, call OI and put OI columns from your option chain for one expiry, one strike per line, and paste them into the box. More strikes give a better answer.
      3. Check the PCR too: the PCR calculator gives the put call ratio for the same chain.

      Limits of OI analysis

      For trades built on these ideas, see Nifty option selling and the iron condor, and check any position in the payoff calculator. This page explains tools with invented numbers; it doesn't comment on any day's market or suggest a trade.

      Quick answers

      What is long build-up and short build-up?

      Long build-up is when the price and open interest both rise: new positions are being opened as the price goes up. Short build-up is when the price falls and open interest rises: new positions are being opened as it goes down.

      What is short covering?

      When the price rises while open interest falls. It suggests traders who had sold are buying back to close their positions, which can push the price up quickly.

      What is max pain in options?

      The strike at which, if the index expired there, the options in the chain would be worth the least in total to their buyers. It's calculated from the open interest at each strike.

      Does the Nifty expire at max pain?

      Sometimes it ends near it and often it doesn't. Some traders think prices drift towards max pain near expiry, but there's no reliable evidence that it predicts the expiry price.

      How do I calculate max pain for Nifty?

      Take the call and put open interest for each strike of one expiry. For each strike, add up what all the in-the-money options would be worth if the index expired there. The strike with the smallest total is max pain. The calculator does this from pasted rows.

      Does rising open interest mean the market will go up?

      No. Rising open interest only means more contracts are open. Whether that's read as bullish or bearish depends on the price move alongside it, and even then it's a description, not a forecast.

      More free calculators

      Option strategy guides

      All 81 guides →

      हिंदी में पढ़ें: Lot size kaise nikale?, Prop firm challenge kaise pass kare?, Gold trading kaise kare?, Forex trading kya hai, और India में यह legal है या नहीं?

      Trading psychology

      The habits that decide whether a good strategy makes money.

      All 14 trading psychology guides