The Problem Nobody’s Solving Well
I had a client call me last week in a panic. He imports kitchen gadgets from China—silicone spatulas, bamboo cutting boards, stainless steel mixing bowls. His COGS jumped 25% compared to last year and he wanted to know why.
The frustrating part? His QuickBooks just showed the total purchase price per item. $15.50 for a spatula that used to cost $10. That’s it. No breakdown. No way to tell him: “Here’s the $5.50 that’s tariff duty, here’s whether your supplier also raised their base price, and here’s which product lines are getting hit worst.”
This isn’t a small problem. According to the National Small Business Association’s 2026 Trade Impact Survey, 61% of small businesses report that 2026 tariffs have negatively impacted their operations. And with tariff costs representing 25% to 55% or more of product costs for some importers, the margin compression is brutal.
Why Traditional Software Fails Here
The accounting challenge is specific: under ASC 330 and KPMG’s 2026 tariff guidance, tariff costs must be capitalized into inventory—not expensed immediately. They flow through to COGS only when inventory is sold. Most small business accounting software records the total landed cost and calls it a day.
But my client needed answers to questions QuickBooks literally cannot answer:
- What percentage of our cost increase is tariff-driven vs supplier price increase vs shipping?
- If tariffs on China drop but tariffs on Vietnam rise, what’s the net impact on our product line?
- Which SKUs should we re-source domestically because tariff-adjusted import cost now exceeds domestic cost?
These are $200/hour advisory questions. And I couldn’t answer them with his current system.
The Beancount Metadata Approach
This is where I think Beancount could genuinely shine. Here’s what I’ve been prototyping for this client:
2026-03-15 * "Shanghai Kitchen Supply" "Silicone spatula set - 500 units"
tariff-rate: 0.25
country-of-origin: "CN"
hts-code: "3924.10"
base-product-cost: 5000.00
tariff-duty: 2750.00
shipping-cost: 450.00
Expenses:COGS:KitchenGadgets:Spatulas 8200.00 USD
Assets:Inventory:KitchenGadgets -8200.00 USD
Now I can run BQL queries that no QuickBooks report can touch:
- Total tariff cost by country of origin — instantly see China vs Vietnam vs domestic exposure
- Tariff impact by product category — which product lines are getting crushed?
- Margin compression analysis — pre-tariff vs post-tariff COGS by SKU
- Re-sourcing decision support — flag any SKU where tariff-adjusted import cost exceeds estimated domestic cost
The Real-World Complications
But I’m hitting walls:
1. Customs invoices are a mess. They don’t come in clean CSV format. They’re PDFs with inconsistent layouts. Has anyone built a Beancount importer that reads customs/duty invoices and automatically splits base cost vs tariff cost vs freight?
2. Tariff rates change constantly. The Supreme Court’s February 2026 decision on IEEPA tariffs means rates can shift overnight. How do you handle a shipment that was IN TRANSIT when rates changed? Which rate applies?
3. NRV write-down risk. Industry data shows companies can only pass through about half their cost increases to customers. If tariff-loaded inventory can’t be sold above its cost, you’re looking at net realizable value write-downs. Can Beancount metadata help flag this risk automatically?
4. Multi-country sourcing complexity. If my client sources the same spatula from China (25% tariff), Vietnam (10% tariff), and Mexico (0% tariff under USMCA), how do I track blended COGS and help him optimize the sourcing mix?
The Advisory Goldmine
Here’s what excites me: clients who can present “tariffs added $136K to our costs this year, concentrated in these 5 product categories, and here’s our re-sourcing plan” to their banker or investors are in a fundamentally stronger position. That’s the kind of analysis that justifies advisory fees.
But I need the tooling to deliver it efficiently. Doing this analysis manually in spreadsheets takes 20+ hours per client per quarter. If Beancount metadata + scripted queries can get that down to 2-3 hours, it’s a game-changer for my practice.
Questions for the Community
- Has anyone built tariff-tracking metadata into their Beancount workflow? What fields do you use? What queries do you run?
- Customs invoice importers — do they exist? Or are we all doing manual entry from PDFs?
- For the CPAs: how are you advising clients on tariff cost capitalization vs expensing? Any gotchas with ASC 330 compliance?
- For the tax folks: what are the tax implications of tariff cost allocation? Section 301 duty drawback? Tariff engineering opportunities?
I feel like this is a massive opportunity for Beancount-based practices to differentiate from the QuickBooks crowd. But I want to make sure I’m not reinventing wheels that someone else has already built.