Futures rollover and basis calculator
A positive gap is contango in this sketch. It is not a forecast.
Reading the gap
The far price minus the near price, divided by the near price, times 365 divided by the days between them, is a simple annualised basis. It tells you how expensive it is to stay in the trade by rolling, before brokerage. Add the two commissions you pay to close the near and open the far.
Contango, a far price above the near, is common in some commodities and painful for anyone who is long and rolling. Backwardation is the opposite gap. A perpetual future does not roll this way; it uses funding. Do not paste a funding rate into this box and call it basis.
The F&O margin calculator is the Indian exchange version of margin. This page is the calendar spread between two prices you type.
A partner link appears here only where that firm accepts customers from your region. The numbers above never depend on it.
How to use this calculator
- Enter the near-month and far-month futures prices.
- Type the days between the two expiries.
- Enter the contracts you hold, the contract multiplier and the brokerage for both legs.
- Read the gap, its annualised rate and the cash cost of the roll.
Worked example
Near at 100 and far at 101, 30 days apart: the gap is 1, about 12.17% a year (1 ÷ 100 × 365 ÷ 30). Rolling one contract with a multiplier of 1 and 40 brokerage costs 41. For an index future whose lot is 75 units, the same 1-point gap is 75 per lot before charges; use the lot size your exchange publishes today.
- Gap, 1. The far price minus the near price. Positive means the market is in contango.
- 1.00%. The gap as a share of the near price, so two markets at different price levels can be compared.
- 12.17 periods. 365 days divided by the days between expiries. Fewer days between them means more periods.
- 12.17% a year. The carry you pay to stay long by rolling, or earn by rolling a short.
On the real screen: The calculator above opens on these prices. Change the days to 90 and the yearly figure falls to about 4%.
Good habitCompare the annualised gap with your borrowing rate before deciding whether to roll or to hold the underlying.
Common mistakeComparing raw gaps between contracts with different times to expiry.
Rolling an MCX crude oil lot, in rupees
Commodity rolls look bigger because the lot is bigger. Say the near crude oil contract on MCX is at ₹6,000 a barrel and the next month is at ₹6,050, 30 days later.
| Step | Working | Result |
|---|---|---|
| Gap per barrel | 6,050 − 6,000 | ₹50 |
| Gap per lot (100 barrels) | ₹50 × 100 | ₹5,000 |
| As a share of the near price | 50 ÷ 6,000 | 0.83% |
| Annualised | 0.83% × 365 ÷ 30 | about 10.1% a year |
The ₹5,000 is not a fee. When you sell the near contract and buy the far one, you give up ₹5,000 of price difference that you would only get back if the far contract later converged to the near price. Brokerage, CTT and exchange charges on both legs come on top; the MCX charges guide lists them. Crude can also flip into backwardation, where the far price is lower and a long roll earns the gap instead.
Common questions
What is contango?
When a later futures contract trades above the nearer one, usually reflecting interest and carrying costs. Backwardation is the opposite.
Is rolling a futures position a new trade?
Yes. You sell the near contract and buy the far one, so you pay brokerage and taxes on both legs.
How is this different from perpetual funding?
Perpetuals never expire; they use periodic funding payments instead of a roll. Use the funding rate calculator for those.
Cash to roll one Nifty futures contract
Use near 24,500, far 24,620, 28 days left, 1 contract, multiplier 65 and brokerage of 40 for both legs. Far minus near is 24,620 - 24,500 = 120.00 points. A positive gap is contango in this sketch. It is not a forecast, and it is not a perpetual funding rate.
Cash to roll is 120 × 1 × 65 + 40 = 7,800 + 40 = 7,840.00. The 65 is the Nifty lot this site uses from 1 April 2026. Confirm the current lot on the NSE before you treat 7,840.00 as rupees you must pay. If the exchange has changed the lot, redo the product.
The annualised gap is (120 / 24,500) × (365 / 28) × 100. First, 120 / 24,500 = 0.004898. Next, 365 / 28 = 13.0357. Then 0.004898 × 13.0357 × 100 = 6.38%. The same fraction is (120 × 365 × 100) / (24,500 × 28) = 4,380,000 / 686,000 = 6.38% once it is rounded to two decimal places.
How the rollover numbers are built
Formula. Gap = far price - near price. Annualised gap, in percent = (gap / near price) × (365 / days left) × 100. Cash to roll = gap × contracts × multiplier + brokerage for both legs. A negative gap makes the cash line negative in this arithmetic. That does not mean the market pays you to roll. You still pay brokerage, and you still post margin.
Rolling is two trades: close the near month, open the far month. Brokerage can apply on both legs. The 40 you typed is already the both-legs figure, so do not add 40 a second time. Futures STT in India is 0.05% on the sell side from 1 April 2026, and it is separate from the 40. Closing a long near contract is a sell. Opening the far month, if you stay long, is a buy, so that buy is not the second STT event. The later sale of the far month is. Across the roll and the exit, STT can apply twice.
On these inputs the near sell value is 24,500 × 65 = 1,592,500. STT at 0.05% is 796.25. That 796.25 is not inside the 7,840.00. If 18% GST applies to the typed brokerage of 40 and to nothing else, GST is 7.20. Exchange and clearing fees can also attract GST. Read the contract note. The F&O margin calculator is where the far month's margin belongs. This gap is not margin.
What sits inside the 7,840.00
| Piece | Amount in this sketch | Inside 7,840.00? |
|---|---|---|
| Price gap, 120 points × 65 | 7,800.00 | Yes |
| Brokerage, both legs | 40.00 | Yes |
| STT on the near sell at 0.05% | 796.25 | No |
| GST on the 40, if it is the only fee | 7.20 | No |
| Initial margin on the far month | Not estimated here | No |
Add the separate STT sketch and the GST sketch to the roll cash and you get 7,840.00 + 796.25 + 7.20 = 8,643.45, before any exchange fee and before margin. That larger total is an illustration from the rates above. If your contract note uses another base, the note wins. A wider far-month quote changes the 120 before any tax does.
Mistakes when you roll a future
- Reading 6.38% as profit you will earn. It is the gap scaled by 365 / 28. It is not a yield.
- Reusing 65 after the lot has changed. The cash line scales in a straight line with the multiplier.
- Doubling the 40. On this page, 40 already covers both legs.
- Comparing the 120-point gap with a crypto perpetual funding rate. They are different contracts and different clocks.
- Forgetting fresh margin on the far month. The 7,840.00 does not fund the position.
Residents of India should not replace this listed future with an offshore CFD. Currency derivatives, if that is the market you mean, are permitted pairs on a recognised Indian exchange. Equity-index futures here mean the exchange contract, with brokerage, STT and GST on top of the gap. Check the current lot and the charge sheet on the NSE.
Other venues, and four checks
A CME equity-index future does not use the Nifty lot of 65. Use the multiplier in that contract spec. In the UK, the EU, the UAE, Singapore and Australia, rerun the formula with the local contract and the local tax. The derivatives desk, F&O brokerage and margin are separate tools.
Why use 365 days instead of trading days?
The 28 days are calendar days to expiry, so the year in the sketch is 365. A 252-day year would change 6.38%. Do not mix the two clocks.
What if the far price is below the near price?
The gap and the annualised line are both negative. You still close one contract and open another, and you still pay brokerage. A negative label is not a reason to roll.
Does 65 remain the lot after a revision?
Only while the exchange says so. If the lot is no longer 65, the 7,800.00 line is wrong even when 24,500 and 24,620 are still on the screen.
Is the gap the same as interest on margin?
No. Margin is what you post so the position can exist. Interest on borrowed margin, if it is charged, is another line. It is not inside the annualised gap.
Sources
- NSE India — contract specifications, including the current index-futures lot (checked 10 November 2026).
- Income Tax Department — securities transaction tax framework; confirm the sell-side rate on the official page (checked 10 November 2026).
- SEBI — market rules for exchange-traded derivatives in India (checked 10 November 2026).
- CME Group — contract specifications for US-listed futures, which do not use the Nifty lot (checked 10 November 2026).
Related tools
If your rollover cannot be completed before expiry, use the physical settlement calculator to estimate the cash or shares required on an expiry-day position.
