cgt-tool
Command-line tool for UK Capital Gains Tax on share sales that applies HMRC matching rules offline.
What it does
Command-line tool that reads share trades in a small text format, or converts a Charles Schwab export, applies the UK same-day, bed and breakfast and Section 104 rules and prints gains per tax year as text, PDF or JSON. A Rust binary that runs offline, with HMRC monthly exchange rates built in. The author warns it is a 0.x project, does not compute the tax bill and needs full history.
Where it fits on the map
Not on the map: for individual taxpayers.
The map places maintained projects for a company tax department or a tax authority, without a demo or paid-service flag. Everything else stays on the list with its label.
Similar projects
Of the same kind, for a shared jurisdiction or tax area. Not a ranking.
- beancount-plugin-tax-ukBeancount plugin that computes UK capital gains with Section 104 pooling and exports Excel reports.For individual taxpayers
- BittyTaxCommand-line tools that turn wallet and exchange records into UK cryptoasset tax reports.For individual taxpayers
- canada-hsa-calculatorTypeScript library and CLI for Canadian small-business health spending account tax savings, 2025 brackets.For individual taxpayers
- Capital Gains CalculatorPython tool for UK capital gains tax on broker transaction histories using HMRC matching rules.For individual taxpayers
- clt-vs-pjCompares Brazilian CLT employment with PJ contracting for tech workers: INSS, IRRF, Simples Nacional, ISS.For individual taxpayers
- CoinTaxmanPython tool that calculates German crypto tax from exchange account statements.For individual taxpayers
Maintain this project?
Link to this page from your README, so readers find the facts, the notes and where it fits. The badge is a small SVG served from this site.
[](https://tax-oss.com/projects/cgt-tool/)