Zerodha tradebook analyser

Download your tradebook from Zerodha Console (Reports › Tradebook, segment Equity) and drop the CSV here. The page matches every sale to its buys first in, first out, estimates the charges, and shows your win rate, realised P&L after charges and an XIRR. The file is read in your browser and never uploaded.

Your file is read on this device and never uploaded.

Drop your tradebook CSV here

Console › Reports › Tradebook · segment Equity · Download CSV. Several files at once are fine.

How it's worked out

A tradebook lists every fill. An order filled in parts appears as several rows with the same order ID; the analyser joins them into one trade at their average price, as Profytect's own import does. A trade that appears in two files (two downloads with overlapping dates) is counted once, by its trade ID.

Each sale is matched to the oldest shares still held in that stock, first in, first out, the way your contract notes and the income-tax rules count them. In the example below, the sale of 15 shares on 10 March takes the 10 bought at ₹1,500 first and then 5 of the 10 bought at ₹1,600. A stock is identified by its ISIN, so a symbol change doesn't split it in two.

Charges are estimated for every order: STT, stamp duty, the exchange's transaction charge, the SEBI fee, GST and the DP charge on a delivery sale. Shares bought and sold on the same day are intraday, the rest delivery. Brokerage starts at Zerodha's published rates (free for delivery, 0.03% or ₹20 an executed order for intraday, whichever is lower), and you can change it under Charges.

Win rate counts each sale that closed shares, as everywhere in Profytect: a position sold in two parts is two closed trades. A sale that made exactly nothing after charges counts in neither the wins nor the losses. Average win, average loss and the amount earned a sale are worked out over the same sales, after charges.

XIRR treats every buy as money put in and every sale as money taken out, on their dates and net of charges. Shares you still hold are valued at their latest close, as if taken out that day. Over less than a year the page shows the return over the period instead of a yearly rate, because a yearly rate over a few weeks overstates a short run.

Worked example: two buys and two sales of one stock

Shares bought (10 at ₹1,500, then 10 at ₹1,600)20
Sales that closed shares2
Realised P&L before charges₹2,250.00
Estimated charges on those buys and sales₹101.98
Realised P&L after charges₹2,148.02
Win rate (1 of 2 sales made money)50%
Return over the 98 days (not a yearly rate)12.27%

How to download your tradebook from Console

Sign in to console.zerodha.com and open Reports, then Tradebook. Choose the segment Equity and a date range; Console gives at most a year at a time, so for several years download one file a year and drop them all together. Press the download button and choose CSV.

Drop every file at once. Rows in more than one file are counted once, futures and options rows are left out with a count, and the summary says which period the files cover, how many trades were read and how many holdings are still open.

Reading each block

Net P&L shows the profit or loss on shares sold, before and after the estimated charges, and apart from it the gain or loss on shares still held at their latest close. Charges on shares still held are not in the realised figure; they are counted when those shares are sold.

How the sales went gives the win rate, the average winning and losing sale, the amount earned a sale (win rate × average win − loss rate × average loss) and the median days a sale's shares were held, from their first buy to the sale.

By month adds up the realised P&L after charges of each month's sales, with the round trips closed that month. A round trip runs from the buy that opened a holding to the sale that emptied it, however many buys and sales came between. By stock lists the five stocks that made the most and the five that lost the most.

Why this XIRR differs from Console's

Console works out XIRR on the holdings in your demat, from the date of each purchase. This page works it out on the trades in your file instead: every buy and every sale, including the shares you have already sold, net of charges. The two answer different questions, so they rarely agree: Console's says how the shares you hold have done, this one how the money you traded with did.

A tradebook also starts on the first day you downloaded. Shares bought before it are missing, so their sales can't be matched, and the money that bought them is not in the XIRR.

Zerodha's help page on XIRR and CAGR in Console

Why some sales are left out

When a sale goes past the shares the file shows bought, the extra shares have no cost to measure a gain from. The analyser doesn't guess one: those shares are left out of P&L and XIRR, and the list under Sold without a buy in the file names each stock and the shares.

It usually means the shares were bought before the file's first date, or came from a bonus issue or a split, which a tradebook has no rows for. Download the earlier years too, and the first case goes away. Profytect itself applies splits and bonuses from the exchange's corporate actions, so the second case goes away there.

Profytect reads this same file, and keeps it up to date

Profytect imports this same tradebook, keeps it synced with Zerodha, and applies splits and bonuses, so the sales this page leaves out are matched. Then every closed trade gets its own journal entry, and Analytics shows these figures for any period, next to the Nifty.

Try Profytect free

Questions

No. The file is read by your browser on this device and nothing in it is sent anywhere. The only request the page makes is for the latest closing price of each stock you still hold, from Upstox's public price service, which carries the stock's ISIN and nothing about you. Closing the tab forgets the file.

They are estimates from the published rates, so they come close but rarely to the paisa: exchanges round some charges per contract note, and your plan's brokerage may differ from the starting rates. Change the brokerage and DP charge under Charges to match your plan. Your contract note is final.

The reader understands most brokers' CSV and Excel trade reports, so other files often work, but this page is checked against Zerodha's tradebook. Columns it needs: symbol or ISIN, date, buy or sell, quantity and price.

Only equity cash trades are analysed. Futures, options, currency and commodity rows are left out and counted in the summary, so a mixed file still works.

Each sale that closed shares is one closed trade, after charges. A position sold in three parts is three trades, and a small gain can turn into a loss once STT and the DP charge are taken out. Sales of shares the file never bought are left out.

Checked 26 Nov 2026. Estimates from the figures you enter and the rates shown. Your broker's contract note is final. Not investment or tax advice.