estimate_capital_gains
Calculate mutual fund capital gains tax before selling. Uses FY 2025-26 equity STCG/LTCG or debt slab rules based on fund type and holding period.
Instructions
Capital Gains Estimator — before selling/redeeming a mutual fund, estimates the capital-gains tax you'd owe (FY 2025-26 rules). Applies equity rules (STCG 20% / LTCG 12.5% above the ₹1.25L exemption) or debt rules (slab rate) based on fund type and holding period. Provide a schemeCode to value the holding from LIVE NAV, or pass currentValue directly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| income | No | Annual income in ₹ — used to derive the slab rate for debt funds | |
| fundType | Yes | Fund category — equity rules (STCG 20% / LTCG 12.5%) vs debt (slab rate) | |
| sellDate | No | Planned sell date (ISO). Defaults to the latest NAV date / today | |
| schemeCode | No | AMFI scheme code — if given, the current value is fetched live from NAV history | |
| currentValue | No | Current value in ₹ (use instead of schemeCode for a manual estimate) | |
| investedDate | Yes | Purchase date (ISO yyyy-mm-dd) | |
| investedAmount | Yes | Amount originally invested in ₹ | |
| marginalRatePct | No | Explicit slab rate % for debt funds (overrides income) |