Zerodha Brokerage Calculator in Excel — India

In this article

Build a brokerage worksheet in Excel with your current broker charges as explicit inputs. MarketXLS India can supply supported Zerodha account records and market prices; it does not make an old fee table permanently correct.

See it in actionMarketXLS video
View current plans

Try it in your own spreadsheet

Get the free MarketXLS sample workbook (.xlsx).

No account needed. MarketXLS live data requires a paid plan. Preview workbook

Zerodha Brokerage Calculator Excel spreadsheet showing intraday and delivery cost breakdown with MarketXLS

Start with the order book — India

Install MarketXLS India, connect Zerodha in the add-in and enter this in an empty area:

=MXLSIN.ZerodhaGetOrders()

Get MarketXLS India · Read the broker order-book guide

The output is an order-book view, not an instruction to place orders. Check order status and filled quantity before calculating costs; an unfilled order is not an executed trade.

Make the cost inputs editable — India

Create separate inputs for brokerage, taxes and other charges applicable to your segment and transaction. Source current rates from Zerodha's charges page and your contract note. Record when you checked them. Do not copy rates from an old example without rechecking applicability.

Put quantity, executed price, transaction side and segment on each trade row. Calculate turnover from executed price times executed quantity, then apply the relevant charge rules. Include minimums, caps and rounding where the current schedule requires them.

Reconcile against actual records — India

Compare the worksheet's total with the broker contract note for a completed trading day. Keep any difference visible until you identify whether it comes from execution quantities, segment-specific charges or rounding. The order book alone may not contain every field needed for a final cost statement.

Separate scenarios from executions — India

For a planning scenario, use =MXLSIN.ZerodhaLast("RELIANCE:IN") as an observed quote. Label that value as a quote, not a fill. Actual execution price and quantity belong in a different section.

Use the India function library for supported fields. This workflow does not provide tax advice or guarantee a final brokerage amount; the broker's actual transaction records remain the reconciliation source.

Next step — India

Get MarketXLS India and use the India function library to check each formula. Continue with the India Excel workflow series.

About the authors
Ankur

About Ankur

CEO & Founder, MarketXLS

Ankur is the CEO and founder of MarketXLS. He works with Anagh and Robin on the MarketXLS blog, creating articles together about market data and spreadsheet workflows.

Written collaboratively by Ankur, Anagh and Robin.

Important Disclaimer

The information provided in this article is for educational and informational purposes only and should not be construed as investment advice, a recommendation, or an offer to buy or sell any securities. MarketXLS is a financial data platform and is not a registered investment advisor, broker-dealer, or financial planner. Always conduct your own research and consult with a qualified financial professional before making any investment decisions. Past performance is not indicative of future results. Trading and investing involve substantial risk of loss.

See MarketXLS in action

Bring this workflow into Excel.

Book a demo with our team to see how MarketXLS supports your market research.

Ankur
AnkurFounder & CEO, MarketXLS