upvote
The US was working towards this and then it was one of the first things taken down by DOGE.

https://www.wired.com/story/doge-direct-file-chopping-block/

https://github.com/IRS-Public/direct-file

reply
A technicality: what is being open sourced here are the formulas used to compute value-added tax and other forms of business tax that were affected by the recent tax reform.

Although the Brazilian tax authority does develop software to file personal income tax, and provides it free of charge, that software is currently not open source.

reply
If the formulas and laws are not accessible to the public directly is the law even valid.
reply
I imagine that the law is public, and thus some specification of the formula (as prose). But indeed in the 21st century a law that defines a mathematical formula ought to have a computer-usable component.
reply
We are getting to a points with LLM now that the tax formulas and etc are the important part now rather than the software itself.
reply
This is software though. The repository is written in Java.
reply
Advanced enough LLM can itself create formulas from laws
reply
Doesnt matter if it isnt the same formula applied by tax authorities. Their interpretation of the law is what matters.
reply
Deterministically?

Depends on how the law is written.

reply
It was also Intuit lobbying
reply
Yes, they killed direct file, the motivations are fairly blatant. Open source makes so much sense for this, you can check it and raise issues, raised a few issues for the IRS repos myself (obviously, they were pretty fringe, but this will matter for n=few hundred people)
reply
If you can file your taxes through a commercial app, why can't you do it through an open source app? Is it illegal? What's stopping a developer from making a free to use or open source tax filing app?
reply
The IRS only accepts direct filings from a list of certified cloud services. It's not illegal to generate a paper filing with something else and submit it yourself like if you did it by hand, it's just a lot less convenient. And you're fully responsible for any bugs in the code.

You could get the official instance of an open source app certified but that takes a lot of time and money.

reply
Why don't one of us make a cheap service that generates paper files for people, and prints them in our office and we put them in the mailbox for them?
reply
Thank you for getting to the core question! I did a little looking myself, and from what I found, I don't see that it would take a lot of money. A lot of time and effort, yes. But that's how programming complicated software is.

https://www.irs.gov/e-file-providers/become-an-authorized-e-...

reply
It's a lot of work (tax code is complex, there are also 50 states) , it changes every year so it needs constant work, it needs to be reletivly easy (else why bother using it) and it needs to be totally correct (a bug that calculates things wrong could have very bad consequences.
reply
All the more reason for the government to own and publish it, then the cost of updating the software can be accounted for in all bills that propose new tax changes.
reply
I once roughly calculated the administrative overhead of a job agency, checking the job agency, several layers of subsubcontactors and the checks the tax office has to do and it was ~3 times the salaries. As the complexity grows (exponentially) the people doing the work get considerably more expensive. I didn't even account for their salary administration which would involve employees who also come with administrative overhead.

It would be quite simple for employers to submit work schedules to the tax office, have employees check them, have the tax office send an invoice to the employer and have the tax office pay the salaries.

Have the employer report sick leave and request overtime at the tax office so that they can get fined.

The subsubcontractor system is full of fraudulent billing but if they have to report something to the tax office all the "mistakes" magically disappear.

reply
If the government worked for the people then sure, they should do that. However, the US government works mostly on behalf of the corporations, and it's in the interest of companies like Intuit and HRBlock to keep the tax code complicated and make it as difficult as possible for individuals to do their own taxes.
reply
People will trust an open source repo maintained by the government. Trusting an open source repo hosted by a third party is a different ball game.
reply
Nothing as far numbers wise as I can tell but the commercial apps have a way to digitally submit it.
reply
That's what I'm curious about. Is this digital submission behind some fee that the IRS charges, or a whitelist?
reply
https://www.irs.gov/e-file-do-your-taxes-for-free

Seems based on your income.

This is by design. Intuit spends loads of money to lobby politicians here and keep tax code complicated so they can stay in business. The US in general has a “let the private sector manage these things” mentality but our politicians don’t know how to create actual checks on these industries. Or they don’t care. Or they’re invested financially. Something something conflict of interest.

reply
So it doesn't sound half as bad as people are trying to make it. The IRS gives you a free tool to digitally file taxes if you earn up to $95 000.

Seems more like people are complaining for the sake of complaining.

reply
Why should it be capped at $95,000?
reply
That implies that here is a tax that applies non-progressively for higher earners. This is the worst kind of a tax, but of course, in practice, it might be fine if 100% pf people who earn 95’000$ and above have to declare extra stuff that cannot be declared in the free form.
reply
The open source app didn’t donate for any Republican campaigns. This was considered unamerican.
reply
It's extremely complex, especially once you get into filing taxes for a business. The laws change constantly. To be a serious product, you also have to keep up with atleast 50+1 sets of laws as well, since typically commercial options offer federal for free if you pay for state.

The accountants who are paid to keep up with these things and are most knowledgeable usually only deal with one or a few states. What incentive does any accountant have to lend their expertise to an open source project and help maintain it?

reply
So if it's extremely complex, and especially for businesses, then maybe it's fair that people pay for software that does it for them? I think it's normal world wide that businesses pay for people or software for this.

Also, you wouldn't have to make a solution for more than one state if you don't want to.

If I understand correctly, the IRS isn't hindering anybody from making a free or open source solution. So people who complain could either get on it, or use the options at hand.

reply
Please don't misunderstand my point. I fully think that it should be open source. I've just seen multiple projects start strong and say they are going to start with federal personal taxes and will expand from there. Then I assume they run into the complexity of the issues and just the maintenance needed for federal. They never get state and they never get business. 100% of people filing their taxes need one or both of those. I do not see a point in trusting a new developer that will only do half the job and I will have to enter in all my information again with an accountant or commercial tax software.

I would love to never pay a commercial company ever again. I just no longer get excited when I see an open source project get started for it, because they never come out with the full solution.

The full solution needs to come from the government or some fully funded open source project with a team of accountants and devs.

reply
I mean, you can still file your taxes with pen & paper, using public information and snail mail. But I fear the day when we’re all forced to use some clunky software owned by a shady private company, entering sensitive data and selfies on our smartphones, with no idea where it’s being stored. I’d be happy if the government just left the current system alone before making it even worse.
reply
It’s so bizarre that the US government doesn’t provide a way to do your taxes. At least for citizens.

I live in the Netherlands and the Dutch IRS provides everything I need to do my yearly taxes. Hell they fill in a whole lot of numbers automatically based on what they know about my salary from my employer. Before I owned my own home my yearly taxes took literally five minutes to fill in because of that. Just double checked some pre-filled numbers and done.

reply
It’s not bizarre, it’s by design. Powerful lobby efforts and another sign of the corporate takeover of Washington. Inuit & others have spent millions to keep it this way.

At one point, the government tried to force them into providing free tax filing for folks with simple taxes… they used every dark art / black hat tactic to trick customers into paying for even the simple free option.

reply
Intuit, yes.

But also, the right in the US is fundamentally anti-government (or at least government capacity). They want a return to the federal government of the 19th century, much much smaller.

One strategy they employ is to make people dislike the government. That means reducing its capacity (ala DOGE) so people have a poor experience dealing with it. And making tax compliance unnecessary difficult.

reply
The purpose of a system is what it does.
reply
penny wise pound foolish. This is so unfortunate.
reply
It wasn't a cost cutting measure...
reply
Almost all of the doge cuts cost the nation much more than they saved - especially in costs to the economy at large. Screwworm cost both livestock businesses and increased inflation for food prices and thats one niche example. Cuts were obviously for self enrichment or ideological crusade.
reply
Most of the doge cuts were to institutions that were in the way of Musk's companies enriching themselves by any and all means.
reply
Enacted by cocky, high-iq but gullible youngsters who thought they knew better.

Enabling brash, high IQ individuals with incomplete/flawed data leads to the most catastrophic outcomes.

reply
I don't think there's any evidence they were high IQ
reply
These are painfully direct, as well.

For example: Tesla wants Cybercab to go nationwide. For national safety purposes, Cybercab is self-certified (which is actually normal), but self-certified is constrained by NHTSA, who watches over what is happening and has the ability to halt what's happening if they don't think the manufacturer is following the rules.

Guess which part of NHTSA DOGE cut first?

They laid off a significant part of the NHTSA team with expertise in analyzing and regulating self-driving vehicles.

So while NHTSA has the legal authority to regulate the national push to allow Cybercabs on the road, many of the NHTSA personnel with the expertise to exercise that authority are gone.

Clever, clever.

reply
But definitely sold to the rubes as cost cutting. Just coincidentally defunded every agency investigating Elon’s companies.
reply
It's ok, Elon's a lefty now.
reply
Yes. Proprietary software that people are forced to use to access government services is a hidden tax. In 2026 the scope of automation is big enough for the governments to maintain in-house engineering teams and use every opportunity including open-sourcing to build better software at lower costs. Today we probably don’t even need to put them in non-profits or subsidiary companies to avoid government salary caps. There are enough people on the market looking for jobs.
reply
> Proprietary software that people are forced to use to access government services is a hidden tax.

In Brazil, this software has been made available for free by the Government for at least 25 years. I say this because that's around when I started using it. It was like that for a lot longer. Versions for Linux, Mac and Windows.

What's different now is that they've open sourced it. Great move, and I highly support it! That said, it makes no difference in terms of cost to use the software.

reply
I think you're confusing this with IRPF, no?
reply
I did lot of open sourcing for city governments, but it brings more cost then keeping it internal due to presenting it, docs, meetings etc. Now some people claim you should do those things anyway but not to the same extent
reply
It brings more cost if you want to do it the right way with fully documented internals and taking pull requests, but you don't need to do that.

You can just dump the code into a public repo with minimal build instructions and let people figure it out. Costs you absolutely nothing unless you decide to write your own license and forget to put in the liability waiver. And its infinitely better than keeping it closed.

reply
I think City governments don't have the scale for it to be worth it to the same extent.

What I'm about to fantasize about is a "bucket list coding project" type thing, but I'd be happy to take a look at the famous IRS tax base mainframe code though. I'm a mainframe systems programmer and we hear stories about the "master file" and oodles of assembly code, which is right up my alley.

Could be transformed to C or C++ today for easier maintainability, but my guess is that they are maybe running without LE runtime services? So maybe that's why it's a challenge to upgrade? Still, it's possible, if you manually initialize libc with an assembler macro and setup your own prelude/epilogue for initialization, comedown, abort cleanups, register passing conventions, and put assembly thunks for all the places you are needing 24-bit memory etc or accessing certain parts of OS common state...

For those not in the know, on z/OS, LE (short for language environment, they didn't call it libc even though that's basically what it is because a lot of other mainframe compilers use it too and the dominance of C at the time on the platform was far from assumed for systems code, but is now probably the case) is basically "libc" (and specifically, here I'll be talking about the crt0 part). Without it you need to make your own allocators, handle all your own register save areas, etc. Back in the day when the IRS first computerized tax, the concept of a system wide "libc" you would link with didn't really exist. Every language had its own runtime library, and a lot of shops still wrote everything like it was a bare metal program using "OS" linkage which is a euphemism for basically linking the way the OS code does, not really "userspace" linkage like modern LE enabled XPLINK (much closer to the ABI and calling convention on a platform like x86_64 Linux, and much more efficient too in terms of padding arguments in registers) is.

Nowadays, you want to make sure the C runtime initializes first so it can clean up your messes (like, stuff that the runtime allocates during an uncontrolled failure), even if you are programming in assembly, and if not, at least you need recovery routines to jump to. Not always possible if you are accessing certain types of OS control blocks or low storage or addressing physically (running in DAT off part of the "nucleus" aka kernel), but still, would love to see the famous file.

And yes, the moment I saw who DOGE was bringing to the IRS to deal with this issue and that it was some hipster web dev groupie, I knew it was gonna flop. Probably ran away in terror when they saw what it was REALLY like programming in the 60s and the 70s as far as perf consciousness went. And that it always universally meant assembly (in a very historic and long lived, but also very CISC-y, ISA, although I suppose it was less CISC-y at the time) because compilers weren't great at optimizing yet.

Anyway, from my position of expertise, that's always been the one governmental piece of code that I thought would be on my bucket list. Who knows, I'll probably end up seeing it one day anyway if I continue consulting. Lots of consultants at the IRS needed to keep that same logic churning....but with more people who knows what you could do...if all the systems software engineers in the US were contributing you could probably get it into C or C++ using a modern version of either of those languages (the latest compiler is I think clang 22 on the platform, possibly even clang 23 for those who compiled themselves or are on a beta branch, so far from an ancient C compiler that doesn't support modern C/C++ standards, and far from the ones back in the days when the IRS code was being written that couldn't optimize well enough to fit in the much more limited memory and CPU budgets of the time.)

Such a task would be a Herculean effort ideally suited for an open source scenario, because you probably NEED every single person in the country that happens to know mainframe assembly and C or C++ if you want it to end up being a success. Especially in the assembly area, there really aren't that many of us, and we are spread out across all the big companies all over the country and can't coordinate a project like that so long as it's closed source.

reply
> I'll probably end up seeing it one day anyway if I continue consulting.

Where are all of those hackers when you need them? Too bad this the tapes (punch cards? lol) containing that software aren't leaked.

reply
It would probably not be on tapes or punch cards these days, probably on a big nvme flash storage array (before being loaded into the enormous memories of these machines, we are talking 40-64TiB) and then backed up off site to tape, or maybe they just use Amazon Glacier (which we all know deep down is just tape lol) for that and don't handle it themselves :).
reply
Also, we are all busy getting paid lol! But if something like this were open sourced, I'd take half a year off and do it for free since it's always been sort of a legendary piece of code within the mainframe community. I promise I'm not the only one who would feel that way about it.
reply
> forced to use to access government services is a hidden tax.

Describe. What is anyone forced to use.

reply
It is a quite common case where a government offers a barely functional service, sometimes restricted only to certain certified providers, so that an user has to buy a proprietary solution or hire a consultant to get what they need. In Germany it is unthinkable for a startup to file taxes on their own, everyone goes to a tax advisor and uses the same software, Datev.

I do not know where are you from and what could be a relatable example for you, but I have seen it in different countries.

reply
Requiring a tax advisor is not the same as directly being forced to use a certain piece of software.
reply
A startup needing a tax advisor doesn't seem out of line.

Ordinar people needing a tax advisor instead of having a simple way of filing on their own is more the kind of tax being referred to up-comment.

reply
In the US, filing taxes is free and easy.
reply
How do you do it?
reply
Yes the real problem with US taxation is TurboTax. Excellent analysis.
reply
I recently learned about PIX and was kinda blown away we don't know there is a tidal wave of work being done to displace American payment processors outside the U.S.

https://whatispix.com/

reply
Central bank supported payment just makes a ton of sense for a country.

a) why pay foreign service providers x% of all card based transactions. It's not the whole merchant discount because a lot of that goes to the issuing bank, but it's still significant.

b) if the user/merchant costs are low enough, it displaces cash and helps to formalize the economy which means more accurate economic reporting and less tax evasion.

c) maybe you can provide payment services or software to smaller countries for a while

reply
From the linked page: >You can buy a car or a house with Pix in seconds.

Yep, one day this year I bought fruits on the supermarket with nfc pix and later the same day I bought an electric car with pix. It's like living in the future with no fees being transferred to the USA.

reply
That doesn't mean Brazil does what you say. Back in the 2000s Brazil was runnning in that direction, everything public was incorporating OSS and I myself participated/used several public services that were built upon Linux. Then at some point in the 2010s they announced they'd be doing away with that philosophy and suddenly their started getting volume licenses and sticking windows/office on every school, university or government computer again.
reply
Why isn't publishing the formulas sufficient for democracy and freedom?
reply
Have you tried filling out government tax forms? The math and logic (e.g. if-else) are described in natural language prose (e.g. English), not standard mathematical formula notation. And because of that, there are stylistic variations in how operations are described, and there are ambiguities sometimes and even things that you have to infer (e.g. certain amounts that cannot be negative, when to round numbers). And then there are fields that cross-reference other fields and you have to fetch those values manually too. All of this is much better described in a formal, executable, popular programming language like Python, JavaScript, C, etc.
reply
How do you know the published code matches the authoritative law?
reply
First of all, tax forms themselves might be primary sources. It's not clear to me that tax forms are an unambiguous translation of prosaic tax law into mechanical steps that a human can follow. (For example, if the law calls for "progressive taxation" but doesn't specify the brackets, then it requires extra information to turn it into a calculation procedure.)

Otherwise, if tax forms are translations of underlying laws, then how do you know the forms are themselves correct? It's the exact same problem that you're positing about whether code matches law.

Since the whole point of tax forms is to perform a calculation - and preferably perform it correctly and deterministically - it's much better to leave that task to a computer than to a human.

To give a concrete example of how tax forms could benefit from code, take the 2025 Canadian federal personal income tax form (T1), and I'll comment on some features. https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/5006...

> Employment income (box 14 of all T4 slips)

This references another data structure (T4 slip) and asks you to sum all of them (implied by the word "all"). But it's ambiguous because in some programming contexts, "all" means returning a list of numbers or items.

> Elected split-pension amount (complete Form T1032)

This basically asks you to jump into a subroutine, do some calculations, and return the result here.

> Amount of dividends (eligible and other than eligible)

This is a filter operation followed by a sum.

> if negative, enter "0"

In math notation, this is x = max(y, 0).

> Use the amount from line 26000 to complete the appropriate column below.

This repeats something a few lines down and is only useful for clarifying for humans.

> Line 70 minus line 71 (cannot be negative)

This is a sanity check like assert(x >= 0).

> Enter whichever is less: $1,471 or line 1 plus line 2.

There are actually two line numbering systems happening simultaneously, one on the left of the money box and one on the right.

> Amount from line 42000

Some instructions merely copy numbers from other sections in order to get the data more local to the current problem being handled. Computers don't care about locality in this sense.

reply
I mean in my country government does the taxes for me, I just need to accept their calculation (or do nothing), unless I want to add my tax breaks, which I can do in 5 minutes thorough the web interface. The software itself is not open source, but there's no need for it. Nobody (except business owners) uses paid solutions.
reply
Please tell us which country so we can all move there.
reply
Finland does this too. There is somewhat more complicated cases like running companies or if you do lot of stock or crypto trading. But average person just have everything automated unless there is something special to report.
reply
This is how it works in Brazil too.
reply
Sounds like Singapore
reply
What country doesn't do it?
reply
The US for one (luckily I’m not there phew)
reply
We should have the code documented in a repo and an approved llm to do the taxes where the government will forgive any errors and rectify. The current tax system is akin to the government throwing glue on the ground and allowing companies to charge for pulling you out every year
reply
I wholeheartedly agree. But the fact is that most politicians are corrupt, even in the Western world. They call it "lobbying.
reply
Yes! And it's not only evil giants, even in small countries there's dozens (or even hundreds) of software companies needing to adapt their software after laws pertaining to taxation or finance changes.

Open source and publish as a npm, NuGet etc. package.

reply
Exactly. Versioned law, corresponding updates to tax software. I have written on exactly this, apologies for self promoting https://lexifina.com/blog/formalizing-tax-code-globally
reply
>Every country that calls itself democratic and free

Maybe then they will catch up with tyrannical Russia where government provides all the necessary software for filing taxes for free (for over a quarter of century). Some of it (most of it?) is also duplicated as online services.

reply
You have to support them or you go to jail. Same as the good giants.
reply
It’s a long slog and frankly I gave up and got a proper job

https://web.archive.org/web/20170906160619/http://oss4gov.or...

reply
It's jarring isn't it because the path to minimising human work, and improving the quality of what exists, is so blatantly clear in this domain
reply