Question: What happens when this hledger fan receives a dividend from a mutual fund?
Answer: He says to himself, “How am I going to enter this in my plain text accounting?”
When a mutual fund generates a dividend, it is common to be able to take the dividend as cash or reinvest the dividend to acquire additional mutual fund shares.
I had understood the option of reinvesting the dividends as receiving dividends instead of cash. And that may be what is actually happening — I have never run a mutual fund, so I don’t know exactly how that works.
For my purposes, however, I know that I want to track the dollar value of the dividends received, as it has tax implications for me. In short, if a dividend is reinvested, I need to have both a dollar amount and a share amount.
It occurred to me that if I take the wording “reinvest dividends” literally, this means I receive a dividend of money and then immediately turn around and buy additional shares with that dividend of money. (I realize that analyzing wording like this doesn’t guarantee accuracy in what is actually happening in terms of accounting, but I will try it to see if it works.)
So, first in terms of an example, is my hypothetical BigIndex fund tossing me a dollar of interest at the end of January. The first posting line, showing the income, was straightforward. I get $1.00 of income.
Where did that one dollar go? I don’t see anything in my mutual fund statement other than purchasing shares (OK, a fraction of a share) of the mutual fund. Well, the mutual fund must have possession of the cash, even if it’s for just a millisecond, before they purchase additional shares for my account. So, realizing that I am skating on thin ice here, I create a cash account for the mutual fund, as shown in the second posting line (and final line of the transaction):
2026-01-30 dividend received | Acme Mutual Fund:BigIndex
income:Acme Mutual Fund:BigIndex -$1.00
assets:Acme Mutual Fund:cash $1.00
Now, I need to account for the mutual fund’s having reinvested my dividend. I create a second transaction for the reinvestment.
The first thing is to remove the $1.00 for the cash account. This makes me slightly less nervous about the mutual fund cash account I admittedly invented, as removing the $1.00 zeroes out the account. This is shown on first transaction line below.
Next, I use the second transaction line to purchase my fraction of a share of BGINX.
2026-01-30 dividend reinvested | Acme Mutual Fund:BigIndex
assets:Acme Mutual Fund:cash -$1.00
assets:Acme Mutual Fund:BigIndex 0.1000 BGINX
Do I actually need two transactions? I am not sure, but there are two advantages for me. First, I find it easier to understand if there is one transaction showing the dividend received and another showing the purchase of additional shares with the dividend.
Second, the transactions have different descriptions, which might be helpful later on for report generating. If there was just one transaction, the description would be the same. Yes, there are likely ways to get around having just one description, but I prefer going with something where I can already see the solution.
My last word is that I am exploring how to track mutual funds in plain text accounting. I may be making mistakes that any trained accountant would recognize in a heartbeat. However, for me, exploration leads to deeper understanding, and that’s a goal in itself.