Hi!
I have been using hledger to track our personal expenses and things have been great so far. It has been slight over a year and I am still learning so much about accounting and the possibilities with hledger.
As we move into 2026, I tried closing out 2025 and starting with a fresh file for 2026. Something I have not been able to comprehend has to do with tracking my house value in my journal.
For example, lets say that this is my 2025 journal:
2025-01-01 Opening ; Bought a house years ago
assets:house 1000000 USD @@ 800000 USD ; Bought for 800k, now worth 1m
equity:opening
2025-06-30 Value update
assets:house =1100000 USD ; house value went up again
equity:unrealizedgains
Things are looking good at the end of the year:
hledger -f example.journal bs
Balance Sheet 2025-06-30
|| 2025-06-30
==============++=============
Assets ||
--------------++-------------
assets:house || 1100000 USD
--------------++-------------
|| 1100000 USD
==============++=============
Liabilities ||
--------------++-------------
--------------++-------------
|| 0
==============++=============
Net: || 1100000 USD
Now it’s time to close 2025 and move this into 2026:
hledger -f example.journal close --open --show-costs >example-2026-open.journal
cat example-2026-open.journal
2026-01-08 opening balances ; clopen:
assets:house 100000 USD
assets:house 1000000 USD @@ 800000 USD = 1100000 USD
equity:opening/closing balances
My first surprise is that I now have 2 different assets/accounts for the house. Reading the documentation I think this might have to do with lots but I am unsure. I would have expected one line/account which would have stated I have an assets of 1,1m which has an acquisition cost of 800k…
Looking at the situation from 2026, I see this:
hledger -f example-2026-open.journal bs
Balance Sheet 2026-01-08
|| 2026-01-08
==============++=============
Assets ||
--------------++-------------
assets:house || 1100000 USD
--------------++-------------
|| 1100000 USD
==============++=============
Liabilities ||
--------------++-------------
--------------++-------------
|| 0
==============++=============
Net: || 1100000 USD
Which is what I expect, but, if I look at the gains, I see:
hledger -f example-2026-open.journal bs --gain
Balance Sheet 2026-01-08 (Historical Gain), valued at period ends
|| 2026-01-08
==============++============
Assets ||
--------------++------------
assets:house || 200000 USD
--------------++------------
|| 200000 USD
==============++============
Liabilities ||
--------------++------------
--------------++------------
|| 0
==============++============
Net: || 200000 USD
The gain is “only” 200k, not the 300k I would have expected (1,1m value - 800k acquisition cost). What am I doing wrong?