UK Tax Calculator forStocks & Shares
Calculate your UK capital gains tax, dividend income, and portfolio performance from Interactive Brokers, Trading 212, and other platforms. Calculations following HMRC rules with detailed reporting.
Why Choose Our Tax Calculator?
Comprehensive UK tax calculations designed for investors using Interactive Brokers, Trading 212, and other platforms.
Follows HMRC Rules
Accurate UK tax calculations following HMRC guidelines for capital gains, dividends, and currency gains.
Portfolio Analytics
Comprehensive portfolio analysis with performance metrics, market breakdown, and current holdings.
Detailed Reports
Generate comprehensive reports in multiple formats for tax filing and portfolio review.
How UK Capital Gains Tax Calculation Works
Understanding the process helps you prepare accurate data and interpret the output with confidence.
The Calculation Pipeline Following HMRC Rules
The calculator follows HMRC requirements to evaluate your trading activity, match disposals, and apply current rates:
- Identify disposals and acquisition pairs for every security
- Apply same-day and 30-day matching before Section 104 pooling
- Reconstruct allowable costs including fees and commissions
- Convert every amount to GBP with HMRC daily exchange rates
- Apply the annual exempt amount and current CGT brackets
Export Your Data
Download transaction reports from IBKR or compatible brokers in QFX or CSV format.
Upload & Calculate
Upload your file, pick the tax year, and let the engine handle HMRC matching rules.
Review Results
Inspect detailed breakdowns covering gains, losses, pools, dividends, and portfolio analytics.
File Your Return
Use the structured output to complete your Self Assessment with supporting evidence.
What Data Do You Need?
Upload complete tax-year statements to ensure accurate calculations across all disposals and dividends.
Interactive Brokers (QFX)
Export your IBKR Activity Statement in Quicken (QFX) format for the richest transaction detail, including corporate actions and currency conversions.
Included data:
- Buy/sell trades with execution details
- Currency conversions and FX rates
- Commission, fees, and taxes
- Corporate actions and adjustments
CSV Format (Multi-Broker)
Use CSV exports from brokers such as Sharesight, Hargreaves Lansdown, Fidelity, or generate files that match the documented column specification.
Required columns:
- Date, Symbol, Quantity, Price, and Total Amount
- Transaction Type (BUY/SELL)
- Currency and FX rates where applicable
- Optional: Fees, commissions, and withholding taxes
Pro tips for accurate results
- Cover the full tax year (6 April – 5 April) to capture all disposals and dividends.
- Ensure all corporate actions are included to keep Section 104 pools consistent.
- Keep supporting evidence for additional costs such as stamp duty or transfer fees.
- Use GBP exchange rates supplied in your statement or by HMRC for the relevant dates.
UK Tax & Investment Blog
Expert insights, guides, and updates on UK policy changes affecting international investors.
Urgent: CGT Rate Changes (from 30 October 2024)
Capital gains tax rates for shares and ETFs have increased significantly. Basic rate taxpayers now pay 18% (+8%) and higher rate taxpayers 24% (+4%) on disposals made after 30 October 2024.
Basic rate 10% • Higher rate 20%
Basic rate 18% • Higher rate 24%
Understanding UK Capital Gains Tax
Complete guide to CGT calculations, allowances, and optimisation strategies for 2024-25.
Tax-Efficient Investment Strategies
Learn how to minimise your tax burden while maximising investment returns.
Using Interactive Brokers Data
Step-by-step guide to extracting and processing IBKR data for UK tax calculations.
Frequently Asked Questions
The calculator accepts both QFX (Quicken Financial Exchange) and CSV exports. QFX files include the most detailed transaction information and are recommended when available.
To export from IBKR:
- Log in to the IBKR Client Portal
- Open Reports → Statements → Activity
- Select the required tax year and Quicken (QFX) format
- Download the statement and upload it directly to the calculator
The calculations follow HMRC rules including Section 104 pooling, same-day and 30-day matching, and official historical exchange rates.
- Section 104 pooling for share matching
- Historical HMRC exchange rates for currency conversion
- Dividend withholding tax handling
- Current tax rates and allowances for each tax year
Uploaded files are processed securely and never stored. All communication is encrypted and the service runs in isolated, serverless infrastructure.
- HTTPS encryption for all traffic
- No persistent storage of uploaded files
- Automatic deletion after processing
- No sharing of data with third parties
You must report if your total gains exceed the annual exempt amount (£3,000 for 2024-25) or if your disposal proceeds exceed £12,000.
Dividend income above £500 must also be reported even if no capital gains tax is due.
All transactions are converted to GBP using HMRC exchange rates for the transaction date. This includes purchases, sales, dividends, fees, and commissions.
Average rates are not used; each transaction is converted at its specific rate to comply with HMRC requirements.
Losses can be carried forward indefinitely but must be claimed within four years. Current year losses are used first, followed by the annual exemption and then historic losses.
Use the calculator output to adjust your Self Assessment submission with any brought-forward losses.
Tax Planning Strategies for International Investors
Timing Your Disposals
Strategic timing of share sales can significantly impact your tax liability. Consider spreading large disposals across tax years to make use of multiple annual exemptions.
Example: Selling £3,000 in March and £7,000 in April can utilise two annual exemptions.
Harvesting Tax Losses
Realising losses to offset gains is a powerful tax strategy. Sell losing positions to crystallise losses, then repurchase after 30 days to avoid the bed and breakfast rule.
Losses must be realised in the same tax year to offset current gains.
ISA and SIPP Utilisation
Maximise your ISA allowance (£20,000 for 2024-25) and pension contributions to shelter investments from capital gains tax.
Be mindful of 30-day rules when moving between taxable accounts and wrappers.
Spouse & Civil Partner Transfers
Transfers between spouses or civil partners are generally tax-free and can optimise the use of both partners’ allowances and tax bands.
Transfer assets to the lower-rate taxpayer before disposal to benefit from lower CGT rates.
Recommended Resources
Essential books and tools that help UK investors stay informed and tax-efficient.

Tolley's Tax Guide 2024-25
by Tolley
The definitive guide to UK taxation including capital gains tax, income tax, and corporation tax. Essential for investor...

Shares and Taxation
by Jimmy B. Prince
A Practical Guide to Saving Tax on Your Shares.

The Intelligent Investor
by Benjamin Graham
Benjamin Graham's timeless investment principles. Essential reading for understanding value investing and building long-...

Trading in the Zone
by Mark Douglas
Master the psychology of trading. Essential for understanding market emotions and developing disciplined trading strateg...
Ready to Calculate Your UK Taxes?
Join thousands of UK investors who trust this platform for accurate tax calculations following HMRC rules.
UK Tax Calculator for Stocks and Shares
Calculate capital gains tax, dividend tax, and currency gains for UK investors using Interactive Brokers, Trading 212, and other platforms via CSV. The SPA replicates the production landing page so outputs following HMRC rules remain consistent across web experiences.
- Capital gains tax calculation with Section 104 pooling
- Dividend income tax calculation with withholding adjustments
- Currency gain/loss calculation using HMRC exchange rates
- Portfolio performance analysis and reporting
- Support for stocks, ETFs, and other securities
Keywords: UK tax calculator, Interactive Brokers tax, Trading 212 tax, capital gains tax calculator, HMRC compliance, Section 104 pooling, UK investment tax, Self Assessment, portfolio analytics.