← All writing

How I test bookkeeping software so the numbers are right

Bookkeeping software has one job: the numbers have to be right. If an invoice lands as income in the wrong month, or payroll tax goes to the wrong account, nothing else about the app matters. I build a free bookkeeping app for freelancers and small businesses on my own. This is how I check it, what the checks have caught, and what they still can't promise.

The rule the code won't break

A bookkeeping app uses double-entry bookkeeping, the system accountants have used for centuries. Every transaction is recorded twice, once where the money came from and once where it went, and the two sides must add up to the same amount.

That rule is enforced in the code, not just described in the help. An entry that doesn't balance is refused, and so is one that tries to change a month already closed. A whole group of mistakes can't be saved at all. Tests check both of those rules directly, because a rule that is only written down is one the next change can quietly break.

43 automated tests that run against the real app

Rules catch some mistakes. Tests catch the rest, and they catch changes that break something that used to work. A bookkeeping app has 43 automated tests, which are small programs that set up a situation, run it through the app's own code, and check the answer.

AreaTestsWhat they check
Ledger and accounting rules22Unbalanced entries are refused, closed months can't change, income is booked correctly on both cash and accrual, sales tax, discounts, refunds, depreciation, reversing entries, and that the example company balances.
Payroll, reconciliation, inventory, recurring entries and month-end close13Hand-worked 2026 withholding for three filing statuses, Social Security and Medicare limits, the Form 941 worksheet, bank reconciliation carry-forward, weighted-average inventory, and recurring entries that never post twice.
Cash forecast (APEX)8The forecast reads exactly the same cash, receivables and payables as the books, and the same books always give the same forecast.

The tests load the engine straight out of the page people actually use. They don't test a copy, so a passing test is evidence about the shipped code. The test files are public so you can read exactly what each one checks.

Two real errors the new tests found

This month I added 13 tests for payroll, reconciliation and inventory, the parts of the app I had tested least. They found two errors in payroll reports. Both are fixed, and both are now covered by tests so they can't come back quietly.

The Form 941 worksheet counted 401(k) deferrals as wages. The quarterly federal payroll worksheet put pre-tax retirement contributions on line 2, which should match the wages in box 1 of the W-2. In the example company's first quarter, that showed $1,848.00 on line 2 where the correct figure is $1,792.56, a difference of $55.44. The worksheet now takes deferrals out, and a test checks it.

W-2 Social Security wages were worked backwards, which drifted by rounding. The app calculated box 3 by dividing the Social Security tax by 6.2%. Because the tax is rounded to whole cents first, the answer can be a few cents off. For the example employee it showed $13,544.84 where the true figure is $13,545.00. Box 3 is now the pay itself, capped at the 2026 wage base of $184,500, and a test checks both the rounding case and the cap.

Both errors were in the version people were using until I fixed them. That is the uncomfortable part of this work. The tests didn't prevent the mistake. They showed me it was there, and they will stop it coming back.

Payroll checked against worked examples

Payroll is the hardest part to get right, because the rules have many small limits. For the withholding tests, I worked each example by hand from the 2026 brackets and standard deductions [3], for single, head of household and married filing jointly, and the app has to match those figures to the cent. Other tests check the limits that change partway through a year. Social Security stops at the $184,500 wage base [1], extra Medicare tax starts above $200,000 and is withheld from the employee only [2], and FUTA stops at the first $7,000 of each employee's wages [2]. A test runs a full year of paychecks and checks that each limit cuts in on the right pay date.

These checks confirm the arithmetic follows the rules I wrote down. They don't confirm the rules themselves are complete for every state or every employer, which is why I still recommend a payroll service for real employees.

Backups have to come back identical

A bookkeeping app keeps your books in your own browser, not on my servers. That is good for privacy and bad if the browser's data is cleared. So one test takes a full year of books, backs them up, restores the file, and checks that the trial balance, the profit-and-loss report on both cash and accrual bases, the balance sheet, the total owed by customers and the complete journal all come back exactly the same. Another test refuses a file that isn't a bookkeeping app backup, so a wrong file can't wipe your books.

The cash forecast must agree with the books

A bookkeeping app includes a 13-week cash forecast called APEX. A forecast is only as good as the numbers it reads, so the first APEX test checks that it sees exactly what the books say. On the example company, cash in the bank is $11,071.69 in both places, customers owe $16,290.00 in both places, and vendor bills owed are $1,358.00 in both places, to the cent. The other APEX tests check that each forecast week starts where the last one ended, that the same books always give the same forecast, and that the forecast never changes the books it reads.

What the tests can't promise

A passing test means the code does what I wrote it to do, for the situations I thought to test. It doesn't mean the app handles every situation. Tax rules change every year, and a test built on 2026 figures won't catch a 2027 change until I update it. Nothing here replaces an accountant reviewing your books, especially in your first year. A bookkeeping app does the math, but it isn't a CPA and doesn't give tax or legal advice.

If you find a number that looks wrong, that is the most useful feedback I can get. I add a test for each error I fix, so the same mistake is caught if it returns. The reliability page describes the main checks, and the test files show each one in full.

Sources

  1. Social Security Administration, Contribution and Benefit Base (2026 taxable maximum: $184,500)
  2. IRS Publication 15, Employer's Tax Guide (Additional Medicare Tax, FUTA)
  3. IRS Publication 15 (2026) and IRS Revenue Procedure 2025-32 (2026 brackets and standard deductions, as used in the app)

The test counts, backups, forecast figures and the 941 and W-2 corrections are the app's own results, published in the app's test files.

Have an idea, a project, or a question for Arun?

Let's talk
Based in Madison, Wisconsinhello@arunsella.comLinkedInInstagramX

Arun Sella

Entrepreneur in Madison, Wisconsin, building free tools for money, small business and everyday life.

Pages