Tracking your finances with plain text accounting
Plain Numbers

Lead Image © romeomd, 123RF.com
If you're tired of tinkering with spreadsheets, using hledger and plain text accounting offers a simpler method for managing your finances without vendor lock-in.
Accounting or bookkeeping may look like black magic to nonprofessionals, but its most basic forms are less obscure than you might think. A good accounting system can save money, trouble, and time – even if you are just trying to get your personal finances under control. In this tutorial, I will explain a simple accounting technique, plain text accounting (PTA), and introduce you to hledger, one of the most popular open source PTA tools.
What Is PTA?
In double-entry accounting, every change in the state of the system is a dated movement of money (or whatever else is being accounted for) between at least one source and one destination, and the sum of all those movements equals zero. Double-entry accounting has been around for centuries because its "balanced" transactions are a great, self-enforcing, easy-to-code way to guarantee that no money ever enters or leaves the system unexplained. In double-entry accounting, money is usually inside three main types of accounts: assets (what you own), liabilities (what you owe), and equity, plus two other categories devoted to revenues and expenses. Each account can be subdivided in multiple levels of sub-accounts according to your needs.
In business, equity, more or less, is defined as every stakeholder's initial contributions to the company, from money to office space to machinery, and what the stakeholder could potentially get back upon leaving the company or the company shutting down. In personal accounting, equity represents whatever "wealth" you have when you start accounting that doesn't belong in the other four top-level categories (assets, liabilities, revenues, and expenses). In practice, as far as personal accounting for most people is concerned, equity could be little more than an initial configuration parameter that must be defined somehow, but has little or no impact on what happens next.
[...]
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

News
-
System76 Releases COSMIC Alpha 7
With scores of bug fixes and a really cool workspaces feature, COSMIC is looking to soon migrate from alpha to beta.
-
OpenMandriva Lx 6.0 Available for Installation
The latest release of OpenMandriva has arrived with a new kernel, an updated Plasma desktop, and a server edition.
-
TrueNAS 25.04 Arrives with Thousands of Changes
One of the most popular Linux-based NAS solutions has rolled out the latest edition, based on Ubuntu 25.04.
-
Fedora 42 Available with Two New Spins
The latest release from the Fedora Project includes the usual updates, a new kernel, an official KDE Plasma spin, and a new System76 spin.
-
So Long, ArcoLinux
The ArcoLinux distribution is the latest Linux distribution to shut down.
-
What Open Source Pros Look for in a Job Role
Learn what professionals in technical and non-technical roles say is most important when seeking a new position.
-
Asahi Linux Runs into Issues with M4 Support
Due to Apple Silicon changes, the Asahi Linux project is at odds with adding support for the M4 chips.
-
Plasma 6.3.4 Now Available
Although not a major release, Plasma 6.3.4 does fix some bugs and offer a subtle change for the Plasma sidebar.
-
Linux Kernel 6.15 First Release Candidate Now Available
Linux Torvalds has announced that the release candidate for the final release of the Linux 6.15 series is now available.
-
Akamai Will Host kernel.org
The organization dedicated to cloud-based solutions has agreed to host kernel.org to deliver long-term stability for the development team.