As a proof-of-concept, I've been using extra tokens to formalize the IRS tax forms and worksheets, mostly just to prove this can be done. The idea is that something like this could be adapted into a publicly maintained version of the IRS Direct File program (RIP). I'm up to an estimated 60% coverage of US federal tax situations so far.
I'm not sure it matters. The IRS killed Direct File under lobbying pressure from the tax prep industry. In my opinion the public is owed a free version of this sort of tool. If the IRS doesn't produce it, then citizens ought to. If Google or Anthropic or whoever wants to offer a free version of this, more power to them, but I don't see why they'd bother. They could have done it decades ago.
And to be clear: my vision here isn't "have an agent do your taxes", it's to have agents build a hardened and thoroughly verified deterministic tool that can help you navigate the (somewhat bewildering) forms and instructions decision tree when filing your own taxes.
Not quite. The formalization covers the IRS's published procedure, i.e. the questions and calculations that go into the published forms, worksheets, and instructions. It's not a formalization of the tax code itself, and it's not a tax calculator, though a client of the underlying code could function as a tax calculator. (The project includes such a client, a CLI tax interviewer, just to exercise the code.)
In more detail:
- every line of every form gets a YAML representation which includes the source text, a data type, and an expression built from a small set of lean atoms, plus a citation pointing to the exact location of the rule in the original official document.
- underneath the yaml layer there's a lean formalization of the atoms showing that they behave as specified, that all comuptations use only the allowed atoms and operations, etc. There's also a typescript evaluator that's used to cross check the lean for agreement, so we have the arithmetic represented two ways.
The critical failure point for an LLM-produced formalization like this is the interpretation of the form text. Since I'm not a tax lawyer and don't intend to become one, this is an explicitly owned weakness and one I've structured the project around. Publicly available tax calculators (PolicyEngine, UsTaxes, OpenTaxSolver, etc.) are used to cross check derived numbers from this system. Mutation testing ensures the test suite is robust against bugs and arithmetic errors. Interpretations are cross checked by different model families (Claude, GPT, Deepseek). Etc.
The idea is to derive confidence from the formal properties of the system itself, and to allow theoretical future users of such a system to derive confidence in the interpretation of specific forms by making it easy to cross check line-level formalizations against the source documents.
There's a lot more detail in the (alas, Claude-authored) README. When I have time I'm going to write my own version of the README expressing my vision of the project, but I'm not there yet.
Sort of. The formulas for each line live in the form YAML I described above. The formulas are built out of a set of primitive operations that are defined in lean, with their properties proved there (non-negativity, monotonicity, etc.). There's also a lean evaluator that's run on compiled form data and cross checked with the typescript evaluator. (There's a lot more detail in the README.)
My tax accountant mis-filed my taxes a couple years ago, which cost me about $20K (which I learned after I switched to another accountant later). Don't know if Claude / GPT would make the same mistake or not given SOTA today, but feels like there's an opportunity for models to be saving me thousands or tens of thousands of dollars a year.
Someone still needs to take liability for mistakes.
The real issue is that accountant most likely has a track record of those kinds of mistakes - but you have no info on other clients. So you weren’t as informed at the time you chose them vs the new one.
yeah i think liability ultimately lies on the individual. of course, you could sue your accountant, but that feels hard, maybe almost as hard as suing the model providers.
At least in Poland it is not viable. Friend's business lost noticeable amount of money because accountant has not filed taxes and lied that they filed and lied that they checked it.
And there was no real path to recovering funds, except small part, after long court case.
At least they were able to fire them without severance pay.
The IRS made it crystal clear to me long ago. The tax filer is responsible for everything on the tax return, regardless of the preparer. Of course, accountants can be liable in other ways, but the filer has to pay the fines if the accountant makes a mistake.
From the IRS' point of view, the tax-payer is responsible for paying all of it. You can then turn around and sue to recover any of the fees/fines or penalties incurred as a result of an error made by the accountant, not the actual taxes though.
People misunderstand the concept of liability. Yes your tax professional is liabile for fraud or gross misconduct, but if they make a mistake which results in unpaid taxes or fees you're still the one on the hook.
Typically you are on the hook for paying the actual taxes and penalties, but if you acted in good faith on the negligent advice of a tax professional many jurisdictions allow you to recover the costs of penalties and interest accrued as a result of the negligent advice.
I'm also 0 for 4 on tax preparers / tax accountants, so I concur with you its best to just do it yourself, which is what I now do. Only time I ever got audited (and failed) was when I had employed an accountant, since then I've never had a problem including passing audits. The tax code isn't /that/ complicated for most people's situation, and it's well worth understanding it.
I'm 1 for 6. And my current firm is overworked. I'm moving to do it myself (three companies, fund admin and personal). Recently Found a Tax-Accountant, not a CPA, who does advice only, no paperwork, who I'm using to cross-check my AI tools.
>mis-filed my taxes a couple years ago, which cost me about $20K
What do you mean by "cost you $20K"? That your tax liability was calculated by the accountant to be higher than it actually should have been? Or that the accountant calculated your liability too low, which was caught and billed by the IRS?
In the first case, you can still file for a refund within 3 years (I'm omitting some technical details), but in the latter case, as mentioned by others, you still owe the tax whether it was correctly reported on your original return or not.
Years ago I had a similar issue. Accountant did something incorrect, increasing my liability by around $50k. Tax date came so I paid it, but moved accountants. New person fixed the issues, refiled, but it took a long time to get the refund back. IIRC, the IRS did include some nominal interest for the time they had the money.
I'm not sure LLMs will be good at doing taxes any time soon primarily because they're very bad at even simple math unless it's explained in words like in proofs. A good illustration of this is asking an LLM something like this:
"If I put a container on a food scale, tare it, add 100g of peanuts, tare it, weigh 100g of almonds and then remove the container from the scale, what does the scale read?"
LLMs completely puke all over themselves on this one. They do not account for not taring after the almonds and they do not see the weight of the container needs to be subtracted. The correct answer is minus (100g + container weight). Although this particular question also exploits another LLM weakness which is physical world concepts. LLM are just guessing. For an LLM to do taxes well, it would need to be trained on many scenarios and it would need a math service that it can use as a support service.
You just need to give an instruction something along the lines of "any initial calculation or derived value must be computed through the use of a $LANG program."
Pretty sure the LLMs could implement tax calculations better than the average accountant, were they given the rules.
I have a non-trivial tax situation, as a US citizen living abroad. I prepare my own tax returns, never having found a cross-border tax preparer I trust, and have for the past few years, fed my draft return along with all the supporting paperwork into Claude. It has:
1. found errors, e.g. where I used the incorrect exchange rate (and managed to work out how I had made that error, which I was impressed by)
2. found items which would appear to be errors except for context it did not know
3. flagged areas where it disagreed with me as to the correct tax treatment, but accepted that the law is ambiguous (and in some cases I preferred its interpretation after additional research and in other cases I did not)
4. flagged areas where it disagreed with IRS guidance, and only acknowledged said guidance after I provided links to it
5. provided highly inaccurate estimated tax calculations, and not been able to fix its estimates even when challenged
So my takeaway is that it is a very useful tool for tax, but perhaps unsurprisingly, it is not good enough to dump all your paperwork into and expect a shiny return you don't need to check. (Possibly it is if you just have a W-2 and no other substantial income, but I can't speak for that scenario.)
I also had a great experience consulting LLM regarding registering a business as a foreigner. Except I'm still very sceptical since it's not my area of expertise and consequences for a mistake are very high.
Are you saying I should use this (or it looks like one of their portfolio companies) as my return preparer, or as a replacement for Claude my return-checker? If the former, I would want to know why I should trust it; if the latter, I would want to know why I should pay for their services given I am already playing Anthropic for a subscription plan anyway.
(It would also help to know if you had a financial interest in or prior experience with this company)
Try this, it uses a tax engine as the backbone and provides feedback for Claude if it goes off the rails. Albeit it doesn't support every tax scenario.
I appreciate the recommendation, but as it happens I have already solved the estimated issue (mostly by just preparing a full return with estimated next year's figures, which while time-heavy is going to be more accurate). And for what it's worth, I suspect it wouldn't work for me - cross-border is extraordinarily complicated because of the tax treaties (indeed there is a dedicated IRS form to disclose the effect and rationale of any treaty based position), and given there is no obvious note on the documentation for it that there is cross-border support I doubt there is.
(And as I said to another commenter, I think it would be advisable in this thread for people to expressly acknowledge or disclaim any interest in or prior experience with any particular product)
I'm also in a non-trivial tax situation, GPT Sol did better than my specialist accountant this year. It needed a lot of steering from me and about 2B tokens, but that is better than spending $3-4k in preparation fees. Total time to prepare and handle steering was still less than I normally spend on tax prep with my accountant.
I think what helped is giving it 100+ pdf and csv documents of my full situation so it knew everything about me and could cross-reference with all my bank statements.
So, GPT Sol outputted tax return PDFs that you were able to submit to the IRS? (I'd imagine that you couldn't directly e-file like you could from TurboTax.)
> I have a non-trivial tax situation, as a US citizen living abroad.
Same situation as you. I have a local accountant in the country I'm in plus my US accountant. Claude/ChatGPT have been a huge help for checking, explaining, and finding issues. They also found websites with pertinent information that Google did not, which surprised me.
I have a company abroad in addition to living abroad. It’s kind of a nightmare to do my US taxes and costs me easily $2000 per year right now. I was hoping I could have an agent do them after I have a few years of data and point it at the source statements and the end result forms
I had Gemini help me with RMD calculations for an estate I manage. Advice was mostly good. Wrong about withholding for both US and CA. Missed deductions on US. Was accurate on MFJ and spousal death impacts.
I've found it so far more effective for preparation than for planning/advice.
I've got a plan to feed the laws and rules and instructions into the machine before the prompts - is RAG still cool? Maybe I should small-language this?
I wonder if you use opus 5.5 and let it research using the internet what you would get. I use opus 5.5 for legal stuff and it's generally great, but you do have to give it access to the web.
Not related but I hope QuickBooks learn something and make their software better.
I downloaded 1700 of my transactions and use AI to build an app for it, so I can analyze the transactions and make sure that everything is properly categorized.
It used to take me whole day because of the Quickbooks. It took me less than an hour to go through all the transactions.
In Germany, there are companies like Buhl data that let you do your tax return very easily and give a live estimate of your return based on the data you provided. From my experience over the past 5 years, its prediction error is less than 5%.
I'm for sure reinventing the wheel here but I've had an LLM generate an app that walks me through my existing tax routine I've been running with for years. Thus no real numbers go to any LLM I just give it my situation and it fills out the form.
The plan now is to retrieve the current year's tax forms then have an LLM compare them to stored versions from last year, and look for variances (e.g. new field, new form requirements, etc) all of which an LLM would excel at (whilst basic math it historically did not).
I used Grok Bot and found out that I could offset some stock value going down and get back ~$300. I gave it my bank statements, email access (which had my stocks monthly report as attachment) and a few other things.
I'd have honestly never been able to do it myself - its just too tedious.
https://github.com/emmilco/us-tax-model