Every year, a student comes to my office looking delighted. Their Expert Advisor has made money, and they want to talk about scaling it up. My first question is never about drawdown or the Sharpe ratio. It’s this: “Have you told the tax authority?” The delight usually fades quickly. So let’s tackle the question properly: what are the tax reporting obligations for profits made through an automated trading system?
The short answer is that your obligations are almost identical to those of a manual trader. Tax authorities don’t care whether a trade was placed by your finger or by a few hundred lines of MQL5 code. What changes with automation is the scale. A robot can open 4,000 trades a year, and each of those trades is a reportable event that needs records. That volume can also change how your activity is classified.
In this lecture I’ll cover how gains are classified, what the UK and US rules look like, what records you need to keep, and the mistakes I see most often. I’ll also give you some worked examples to test yourself on. One honest caveat first: this is education, not personal tax advice. Your own situation deserves a qualified accountant.
Table of Contents
- Why Automated Profits Are Taxed Like Any Other
- Classification: Investor, Speculator or Trader?
- What Are the Tax Reporting Obligations for Automated Trading Profits?
- Record-Keeping When a Robot Does the Trading
- Common Pitfalls and Critical Warnings
- Worked Examples to Test Your Understanding
- Frequently Asked Questions
Why Automated Profits Are Taxed Like Any Other
I’ve heard every variation of the argument. “The robot made the money, not me.” “It’s on an offshore VPS.” “The broker is in another country.” None of these work. In almost every jurisdiction you are taxed on your worldwide income and gains, and an EA is legally just a tool you own and run, the same as a calculator.
Think of it this way. If I invent a machine that bakes bread and sell the loaves, nobody says the oven owes the tax. Whoever owns the oven owes it. Your Expert Advisor is the oven.
Why this matters more than you think
- Data sharing is automatic now. Under the OECD’s Common Reporting Standard, many brokers report account details to tax authorities in other countries without being asked.
- Penalties grow over time. Late filing, interest and “careless” or “deliberate” penalties can add a large percentage on top of the tax itself.
- Robots produce a lot of data. The more trades you place, the harder it is to rebuild your figures years later if you get investigated.
- Losses have value. If you report them properly, losses can often offset gains. If you don’t report them, they’re usually lost for good.
So understanding your obligations isn’t bureaucratic box-ticking. It’s part of your system’s real performance. A strategy that returns 20% before tax and 12% after tax is a 12% strategy, and you should evaluate it that way.

Classification: Investor, Speculator or Trader?
Before you can report anything, you need to know what kind of profit you’ve made. This is the most important concept in the whole lecture, because classification decides which rules apply, which rates you pay and what you can deduct.
The United Kingdom
In the UK, HMRC looks at the “badges of trade” to decide whether you’re running a trading business or just making speculative investments. These badges include frequency, organisation, intention and whether trading is your livelihood. HMRC’s long-standing view, supported by case law, is that a private individual dealing in financial instruments is rarely carrying on a trade, even when they trade frequently. Most retail forex and CFD profits therefore fall under Capital Gains Tax (CGT) rather than Income Tax.
The type of product matters too:
- Spread betting: generally free of CGT and Income Tax for private individuals, because it’s treated as gambling. The flip side is that losses can’t be offset either.
- CFDs and spot forex via a broker: normally subject to CGT. You report gains above the annual exempt amount, which is currently £3,000, on your Self Assessment return. You can find full details in HMRC’s Capital Gains Tax guidance.
The United States
The US system is famously more intricate, so get your coffee ready. Spot forex is taxed by default under Section 988, which treats gains and losses as ordinary income. Regulated futures and certain other contracts fall under Section 1256, which applies the “60/40 rule”: 60% of the gain is taxed at the long-term capital gains rate and 40% at the short-term rate, whatever the holding period. In some circumstances you can elect out of Section 988 treatment, but the election has to be made before the trades happen, not after you’ve seen whether they were profitable.
Very active traders may also qualify for “trader tax status”. The IRS sets out the criteria in Topic No. 429, Traders in Securities. Here automation causes an interesting debate. Does a robot trading for you count as you trading “substantially and continuously”? Opinions differ, which is precisely why you need a professional to look at it.
What Are the Tax Reporting Obligations for Automated Trading Profits?
Now we come to the heart of the matter. Once you know your classification, your reporting obligations generally break down into five duties.
- Register if required. In the UK, if you have a CGT liability and don’t already file Self Assessment, you must register by 5 October after the end of the tax year.
- Calculate net gains or losses per tax year. That means every closed trade, plus swap or rollover charges and commissions.
- Convert to your home currency. If your account is in USD and you’re a UK resident, every gain must be stated in sterling, using a consistent and defensible exchange rate.
- File the correct forms. In the UK that’s the capital gains pages of Self Assessment (or the trading pages if HMRC accepts you’re running a trade). In the US it’s Form 8949 and Schedule D for capital items, Form 6781 for Section 1256 contracts, and ordinary income lines for Section 988 gains.
- Pay on time. Filing correctly and paying late still costs you interest.
What about the costs of running the robot?
This is a common question in my seminars. Can you deduct the EA licence, the VPS subscription and the data feed? The honest answer is that it depends on your classification. If you’re a recognised trader running a business, these may be allowable business expenses. If you’re an individual paying CGT, the rules are much stricter, and general running costs usually can’t be deducted from capital gains. Dealing costs directly attached to a transaction, such as commission, are a different matter.
So that £80-a-month VPS might be a deduction for one person and simply a cost for another. Don’t assume. Ask.
Record-Keeping When a Robot Does the Trading
As an engineer by temperament, I’m fond of telling students that a system without logs is a system you can’t trust. Tax is no different. Your robot creates a perfect audit trail, but only if you keep it.
What to keep
- Broker statements: download the monthly and annual statements. Brokers can merge, close or purge old data.
- Platform trade history: export the full MT4/MT5 or cTrader history as HTML or CSV at the end of every tax year.
- Deposits and withdrawals: these prove the difference between capital you added and profit you made.
- Swap, rollover and commission records: these are often shown separately from trade P&L and are easy to miss.
- Exchange rates used: write down your conversion method and stick to it every year.
- Expense receipts: EA purchases, VPS invoices and data subscriptions, in case they turn out to be deductible.
How long to keep it
In the UK, HMRC expects records for at least 22 months after the end of the tax year for most individuals, and longer if you file late or are self-employed. In the US, three years is the usual minimum, rising to six or seven years in some cases. My own rule is simple: keep everything for seven years. Storage costs pennies, and an investigation without records costs a great deal more.
Here’s a practical tip from my own desk. Create one folder per tax year and save four files in it: the broker annual statement, the platform export, a spreadsheet summary and a short note describing your method. When your accountant asks a question, you’ll answer it in minutes instead of days.
Common Pitfalls and Critical Warnings
Now for the part my students tell me is the most useful, mainly because it hurts a little. These are the mistakes I see over and over again.
- Reporting only withdrawals. Tax is due on realised gains, not on cash you’ve moved to your bank. Leaving profit in the trading account doesn’t make it invisible.
- Ignoring multiple accounts. Running three EAs at three brokers means three sets of statements that all need combining.
- Forgetting swap. A carry-trade robot can earn or pay significant overnight interest, and the tax treatment of that interest may differ from your trading gains.
- Assuming prop firm payouts are trading gains. Funded-account payouts are often treated as income from services, not capital gains. It’s a different animal altogether.
- Making elections too late. US elections such as Section 475(f) mark-to-market or opting out of Section 988 have strict deadlines. Hindsight isn’t allowed.
- Trusting forum advice. Someone on a trading forum confidently said all forex is tax-free. They were wrong. They also had an EA that “never loses”, so judge their credibility accordingly.
A critical, honest note: high-frequency EAs can create enormous trade counts, and some reporting software struggles with tens of thousands of rows. Test your process before January, not the week of the deadline.
Worked Examples to Test Your Understanding
Theory sticks better with examples, so let’s work through three. Try to answer each one before reading my explanation.
Example 1: The UK CFD trader
Priya lives in the UK and runs a trend-following EA on a CFD account. Over the tax year she makes £14,500 in gains and £6,200 in losses, and pays £400 in commission.
Question: what is her taxable gain? Her net gain is £14,500 − £6,200 − £400 = £7,900. After the £3,000 annual exempt amount, £4,900 is chargeable to CGT and must be reported on Self Assessment.
Example 2: The UK spread better
Tom runs exactly the same EA, but through a spread betting account, and makes £7,900.
Question: what does he report? As a private individual, generally nothing. His profit is normally tax-free. But if he’d lost £7,900, he couldn’t have offset that loss against anything. Same robot, very different tax outcome.
Example 3: The US spot forex trader
Dana, a US resident, makes $10,000 from a scalping EA on spot EUR/USD and hasn’t made any elections.
Question: how is it taxed? By default, under Section 988 as ordinary income, at her marginal rate. If she’d made a valid opt-out election in advance and the contracts qualified, 60/40 treatment might have reduced the bill. The timing of that election is the whole lesson here.
Questions to take further
- How would Priya’s position change if HMRC decided she was trading as a business?
- If your account is in USD but you’re taxed in GBP, which exchange rate method gives the most defensible result?
- Does running a copy-trading signal service change the nature of your income?
Frequently Asked Questions
Do I have to report profits from an Expert Advisor if I didn’t withdraw them?
Yes. Tax is generally triggered when a trade is closed and the gain is realised, not when you withdraw cash. Profit left in your broker account is still reportable.
Is forex trading tax-free in the UK?
Only spread betting is generally tax-free for private individuals. Profits from CFDs and spot forex through a broker are usually subject to Capital Gains Tax above the £3,000 annual exempt amount.
Can I deduct my EA and VPS costs?
Possibly, but only if you’re classified as running a trading business. For individuals paying Capital Gains Tax, general running costs usually can’t be deducted, although transaction costs such as commission can.
Does using an offshore broker avoid tax?
No. If you’re a tax resident, your worldwide gains are taxable. Many offshore brokers also share account information with tax authorities under the Common Reporting Standard.
Should I hire an accountant for automated trading?
If you make meaningful profits, trade across several accounts or are considering US elections, yes. A specialist will usually save you more than they cost.
Conclusion
So, what are the tax reporting obligations for profits made through an automated trading system? Essentially the same as for any trader, just multiplied by the volume your robot produces. First classify your activity correctly, as investor, speculator or trader, and identify your product type. Then calculate your net gains in your home currency, file the right forms on time and keep complete records for years.
Your next steps are straightforward. Export your trade history this week. Set up a folder for each tax year. Then book a session with an accountant who understands trading. Build your tax process the way you’d build a good EA: tested, logged and reliable. A robot that makes money is impressive. A robot that makes money legally and efficiently is a business.