Zerodha margin calculator
The Zerodha margin calculator at zerodha.com/margin-calculator is a free public tool that computes the SPAN + Exposure margin required for any F&O contract or multi-leg strategy. It is widely used by Indian retail F&O traders for pre-trade planning.
What it shows
For a given contract or combination of contracts:
| Output | Detail |
|---|---|
| SPAN margin | Worst-case loss across exchange stress scenarios |
| Exposure margin | Fixed-percentage buffer |
| Total initial margin | SPAN + Exposure (the upfront requirement) |
| Premium impact | For options, the premium paid / received |
| Hedge benefit | When multi-leg strategies are entered |
| Final margin | Net margin after hedge benefit |
The calculator updates with the latest SPAN file from NSE Clearing.
Why use it
- Pre-trade sizing. Verify your margin available is sufficient before placing a trade.
- Strategy comparison. Compare margins of different option strategies for the same view.
- Hedge optimisation. See how a hedge leg reduces the SPAN for a short option position.
- Education. Understand how margin scales with notional, volatility, expiry distance.
How to use it
- Visit zerodha.com/margin-calculator .
- Select the segment (Equity F&O, Currency, Commodity).
- Pick the contract (underlying + expiry).
- Set quantity (in lots).
- For options, set the strike and type (CE / PE).
- Set buy or sell.
- For multi-leg, repeat for each leg.
- View the computed margin.
The interface supports up to 5 legs (or more depending on the build) per strategy.
What it does not show
- Charges (brokerage, STT, exchange, GST, stamp, SEBI). Use the brokerage calculator for that.
- Your own funds. It computes the requirement; what you have is shown on Kite Funds .
- Cash component split. SPAN + Exposure total only; not the 50:50 cash collateral split .
- Real-time during session. The calculator uses latest published SPAN file; intraday SPAN updates may not reflect immediately.
Multi-leg strategies
The calculator’s multi-leg feature is the most useful capability. Examples:
- Bull call spread (long lower strike CE, short higher strike CE): much lower margin than the short leg alone.
- Iron condor (long + short calls, long + short puts): substantial hedge benefit.
- Calendar spread: cross-expiry; modest hedge benefit.
- Strangle (short OTM call + short OTM put): partially hedged; SPAN sees both tails.
For each, the calculator shows:
- Margin if each leg traded standalone.
- Combined margin with hedge benefit applied.
- Margin saved.
SPAN file refresh
NSE Clearing publishes the SPAN file:
- End of trading day (most common).
- Mid-day for some volatile scenarios.
The Zerodha calculator updates within minutes of new file release. For absolute current values, the calculator is the most accurate retail tool.
Comparing with the Kite order ticket
The Kite order ticket’s Margin required field computes the same thing for an active trade. The calculator is for hypothetical planning; the order ticket is for actual order placement.
Integration with Kite Connect
For programmatic access to margin computation, Kite Connect API offers a margin endpoint. Algorithmic traders can compute margin before placing orders via API.
Limitations
- Doesn’t apply your specific account state. Generic computation; doesn’t know your existing positions.
- Pre-expiry physical delivery margin for stock F&O may not be fully reflected.
- Custom hedge benefit caps by SEBI / NSE may differ slightly.
- Currency / commodity margins differ in calculation style; the calculator covers both but verify segment.
See also
- SPAN and exposure margin on Kite
- Margin required on order window
- Margin available / used / cash on Kite funds
- Margin on exit calculation
- Delivery margin field on Kite
- Pay-in funds explained
- Option premium credit on Kite funds
- Collateral (equity) on Kite
- Collateral (liquid funds) on Kite
- Dashboard / funds calculation flow
- 50:50 cash collateral rule explained
- SEBI peak margin rules explained
- Upfront margin requirements post-2020
- SEBI margin pledge rules September 2020
- Margin shortfall and auto-square-off
- Margin pledge (Zerodha)
- Margin haircut
- Margins and leverage at Zerodha overview
- Exchange margin types (SPAN, ELM, Adhoc, VAR)
- SPAN margin on Zerodha
- Exposure margin on Zerodha
- ELM (Extreme Loss Margin) on Zerodha
- VAR + ELM intraday margin on Zerodha
- Hedged positions margin benefit on Zerodha
- Naked option selling margin on Zerodha
- Cash component vs collateral component
- Lot size revision F&O 2024
- STT hike on F&O October 2024
- SEBI true-to-label charges October 2024
- Brokerage calculator (Zerodha)
- Kite Connect (Zerodha API)
- Futures and options
- Kite Positions tab explained
- Zerodha
- Kite (Zerodha)
External references
References
- NSE Clearing, SPAN methodology and parameter file, nseclearing.com.
- SEBI, F&O margin framework, sebi.gov.in.
- Zerodha, Margin calculator documentation, zerodha.com.
- Zerodha Support, Using the margin calculator, support.zerodha.com.