After four years of using Beancount to track every aspect of my finances - personal spending, rental properties, investments - I have started wondering about something beyond the numbers in my ledger: my environmental impact.
I have optimized my finances pretty well at this point. But as someone who values transparency and accountability in financial tracking, I started asking myself: should I apply that same rigor to my carbon footprint?
Why This Matters in 2026
I did some research and found some fascinating trends. Spend-based carbon tracking - where you estimate emissions based on what you spend - has shown that people can reduce their carbon footprint by about 10% just from increased awareness. Some banks in Sweden are even offering credit cards that calculate the carbon impact of every purchase.
But here is my issue with those tools: they are black boxes. You give them your transaction data, they run it through some algorithm, and spit out a number. As Beancount users, we have rejected that approach for our finances. Why accept it for our environmental tracking?
A Beancount Metadata Experiment
I have been experimenting (and I will admit, sometimes over-complicating things - classic me) with adding carbon metadata to transactions. Here is what I am testing:
2026-03-15 * "Whole Foods" "Groceries - mostly local produce"
Assets:Checking -85.43 USD
Expenses:Food:Groceries 85.43 USD
carbon-kg: 12.5
carbon-source: "local-food"
carbon-intensity: "low"
The concept: tag each transaction with an estimated carbon footprint (in kg CO2e). I am using rough category-based estimates:
- Food: around 1.5 kg CO2e per $10 spent (highly variable by food type)
- Transportation: around 0.4 kg CO2e per mile driven
- Electronics: around 5 kg CO2e per $100 spent (manufacturing is carbon-intensive)
- Local services: around 0.5 kg CO2e per $10 spent (generally lower impact)
These are approximations - I know that. But they are transparent approximations that I control. Over time, I can refine them as I learn more about the carbon intensity of different purchases.
Beancount Query Power
Once you have this metadata in your ledger, you can start asking interesting questions:
Which spending categories have the biggest carbon impact?
SELECT account, SUM(carbon_kg) AS total_carbon
WHERE carbon_kg != NULL
GROUP BY account
ORDER BY total_carbon DESC;
What is my carbon intensity per dollar?
SELECT account, SUM(carbon_kg) / SUM(amount) AS carbon_per_dollar
WHERE carbon_kg != NULL
GROUP BY account;
Am I improving over time?
SELECT YEAR(date), MONTH(date), SUM(carbon_kg) AS monthly_carbon
WHERE carbon_kg != NULL
GROUP BY YEAR(date), MONTH(date);
Imagine tracking both your net worth growth AND your carbon footprint reduction in the same system. That feels powerful to me.
The Hard Part: Getting Good Data
This is where I could really use the community help. Where do we get reliable carbon intensity data?
I have found a few sources:
- EPA carbon footprint calculator (category-level averages)
- Academic research on spend-based carbon accounting
- Commercial APIs like Climatiq (subscription-based)
But manually tagging every transaction gets tedious fast. I am starting to think about building an importer plugin that auto-tags common merchants with estimated carbon data. Your local coffee shop? Low carbon. International flight? High carbon. Amazon purchase? Depends on what you bought.
Questions for the Community
I would really value input from folks here:
-
Has anyone tried this? I cannot be the only person thinking about environmental tracking in plain text accounting.
-
What data sources make sense? Should we collaboratively build a merchant carbon database? That feels very “Beancount community” to me.
-
Am I overthinking this? I have a tendency to over-engineer, and my wife regularly reminds me of this. Is carbon tracking in Beancount genuinely useful, or just another thing to obsess over?
-
How do we handle uncertainty? Financial data is precise. Carbon estimates are fuzzy. Should we track ranges? Confidence intervals?
-
Does awareness lead to change? If I see my restaurant spending generates 50kg CO2e per month, will I actually change my behavior? Or am I just tracking guilt?
Why This Matters
The corporate world is moving toward mandatory carbon disclosure - CSRD in Europe, TCFD reporting globally. Big companies are being held accountable for their emissions.
As individuals who already track our finances obsessively, we have the tools and discipline to do this for our environmental impact too. Not because we have to, but because we believe in measuring what matters.
When I migrated from GnuCash to Beancount four years ago, someone told me: “You cannot optimize what you do not measure.” That changed how I think about money. Maybe it applies to carbon too.
I would love to hear your thoughts. Is this worth pursuing? Or should I focus on more practical Beancount improvements?