// payments · 6 December 2026 · 4 min read
I built a free Form 5472 filler that never sees your bank statements
Foreign owners of US LLCs owe the IRS one form a year, with a $25,000 penalty for missing it. The hard part is your bank statements, so that is what the tool reads.
If you live outside the US and own a single-member US LLC, the LLC files Form 5472 every year that money moves between you and it. Not filing costs $25,000. So I built a free Form 5472 worksheet that reads your bank statements and fills in the official IRS PDFs, in your browser.
Here’s what it does, and the three things that bit me while building it.
The form is easy. Your statements are not.
For a one-owner LLC, most of Form 5472 is your name, the LLC’s name and an EIN. The number that matters is line 1f: the total money that moved between you and the LLC. The IRS instructions say for a foreign-owned LLC that includes “contributions to, and distributions from, the entity”, listed on an attached statement.
So the real work is going through a year of Mercury, Wise or Relay exports and pulling out every transfer that was you. Your own name shows up as “AYESHA KHAN” in one bank and “Received money from Ayesha Khan” in another. Fees you paid for the LLC from your personal card count too, and they never touched its bank.
The tool groups every transaction by the other party, marks the ones that match your name, and asks you to confirm. Then it adds them up.

CSV exports are parsed in the browser and never uploaded. The forms are filled in the browser too, with pdf-lib. Nobody needs to send a stranger a year of bank statements to fill in one form.
Bug one: 05-06 is two different days
Wise writes dates day first. Mercury writes them month first. My first parser guessed the order from the file, which works until every day in the file is 12 or under. Then 05-06 can be the 5th of June or the 6th of May, and the guess is a coin toss.
Swapping day and month never changes the year, so the total survives. But the Part V statement lists every transfer with its date, and that statement goes to the IRS. So now the order comes from the bank: the parser recognises Mercury, Wise and Relay by their headers and uses each one’s known order. For unknown banks it still guesses, and says so on screen.
Bug two: the IRS PDF is two forms in one file
The IRS fillable PDFs carry two copies of the form: classic AcroForm fields and an XFA layer. pdf-lib only handles the first, and tells you so on every load:
Removing XFA form data as pdf-lib does not support reading or writing XFA
That’s fine, as long as the XFA really is gone. A file with both layers can show either one depending on the viewer, so I delete the XFA entry myself and every viewer shows the fields I filled.
The field names don’t help either. Line 1f is topmostSubform[0].Page1[0].Line1f_ReadOrder[0].f1_12[0]. To map them, I drew each field’s name onto the page where it sits, rendered the pages, and read off which box was which.

Bug three: a total that mixed currencies
The screen where you pick which names are you showed a total per name. For my test owner it said 3,900 in. That was 2,500 dollars, 400 pounds and 1,000 dollars from the previous year, added together. The worksheet behind it was right; the screen was not.
Now it shows only the tax year, one line per currency, and a note when a name has rows outside the year. Small thing, but this is the screen where you decide what goes to the IRS.
The part people get wrong: sending it
You can’t e-file it. The instructions say: “If you are a foreign-owned U.S. DE, you cannot file Form 5472 electronically.” It goes by fax or mail, with a pro forma Form 1120 that has “Foreign-owned U.S. DE” written across the top. The tool stamps that on, and puts a fax cover, the 1120, the 5472 and the Part V statement into one print-ready PDF.
I wrote the full walkthrough, with what goes on each form and where to send it, on the Statement Converter blog.
How I tested it
With made-up data: a Mercury CSV in dollars and a Wise CSV in pounds for one owner, run through the live tool in headless Edge at desktop and phone widths. It skipped a failed transfer and a payment from the year before, found the owner in both banks, converted 400 pounds at 1.27 to 508.00, and added a 102.00 filing fee. Line 1f came to 4,310.00, the same as my count by hand. The pack came out as 11 pages, and I checked the boxes on every page.
What it doesn’t cover: Part IV (loans, services or interest between you and the LLC), LLCs with more than one owner, and filing. You sign and send it yourself. It’s a worksheet, not tax advice.
Your bank statements already have the answer. The form just wants it in the right boxes.
Muhammad Mairaj is a Senior Backend Engineer with 8 years building payment and data systems. He writes about data engineering, measured. More about him.