You’re standing at the pharmacy counter at CVS. In your basket, you have a monthly prescription, a bottle of ibuprofen, a box of protein bars, and a very festive birthday card for your nephew. The total is $84.22. You swipe your regular credit card—not your HSA debit card—because you want those travel points.
You get home, look at that three-foot-long receipt, and realize you have a classic YNAB conundrum. Some of those items are qualified medical expenses. Some are definitely not. If you log the whole thing as "Medical," your reports are a work of fiction. If you log it all as "Groceries," you’re losing track of money you're owed.
Honestly, managing an HSA alongside a regular budget is one of the most tedious parts of YNAB. It requires precision, and the manual math can be a total buzzkill. Note: This isn't financial or tax advice.
The problem: The mixed-receipt meltdown
Most of us don't shop at pharmacies for medical items alone. We grab a gallon of milk while waiting for a prescription. When that $84.22 transaction imports into YNAB, it's a lump sum that covers three or four different category groups.
If you don't split this transaction immediately, you lose the ability to see what you actually spent. Even worse, when you eventually reimburse yourself from your HSA, it’s a nightmare to match the reimbursement amount to the specific items on that old receipt. This leads to guessing, which eventually leaves you with a messy Ready to Assign (RTA) balance and a headache during tax season.
Why precision matters for your budget
Your budget is a map of your intentions. If your Medical category is inflated with protein bars and birthday cards, you aren't seeing your true healthcare costs. For those of us who use an HSA as a long-term investment, accurate tracking is the only way to know exactly how much cash you can withdraw years down the road. Without a clear audit trail, you’re flying blind.
Step 1: Mastering the split transaction
The first step to HSA harmony is the Split Transaction tool. When that CVS transaction pops up in your needs-approval list, don’t just pick a category.
- Tap the Category field and select Split.
- Assign the prescription and ibuprofen to your Medical category.
- Assign the protein bars to Groceries.
- Assign the birthday card to Gifts.
Doing this at the point of entry ensures your Medical category only reflects qualified expenses. It makes it easy to look back and see you spent exactly $42.11 on qualified items.
Step 2: Bridging the cash-flow gap
When you pay out of pocket for a large bill—say, a $500 dental cleaning—and plan to reimburse yourself later, you’ll see a red overspent bubble. This is the cash-flow gap.
YNAB represents the cash you have right now. Even if you know the HSA money is coming, your budget doesn't care about the future. To handle this, I recommend using a "Medical Buffer" category or simply rolling with the punches (Rule 3).
You might move $500 from your Emergency Fund to your Medical category to cover the bill today. This keeps your budget green while the HSA transfer clears. Once the reimbursement hits your checking account, you can move that $500 back to your Emergency Fund.
Step 3: Categorizing the reimbursement correctly
When you finally transfer that money from your HSA to your checking account, how do you categorize it? I've seen many people categorize it as Ready to Assign, but that’s a mistake.
If you do this, your Medical category still shows $500 in spending for the year, and your income reports look artificially high. Instead, categorize the HSA inflow directly back into the Medical category. This "nets out" the expense. If you spent $500 and then received $500 back into that same category, your total spending returns to $0. That is an accurate reflection of your net cost.
Step 4: Tracking vs. on-budget (The investment dilemma)
Should your HSA be an "On-Budget" account or a "Tracking" account?
If you use your HSA like a checking account, On-Budget is fine. However, if your HSA is invested in the stock market, having it On-Budget is a mess. Market fluctuations make your RTA go up and down daily, which is the opposite of a stable plan.
Most experienced YNABers keep the HSA as a Tracking Account. This keeps investment volatility away from your grocery money. You only record the specific cash transfers when you move money from the HSA into your spending account.
Step 5: The shoebox method (Tracking the IOU)
Some people choose to pay for medical expenses out of pocket and let their HSA funds grow for decades. This is often called the Shoebox Method. But how do you track what the HSA owes you?
Create a Tracking Asset Account called "HSA Reimbursement IOU." Every time you pay for a qualified medical expense out of pocket, record a transfer from this Tracking account to your Medical category. This creates a running tally of exactly how much you can legally withdraw in the future. It turns a pile of receipts into a searchable digital ledger.
Pro tips for YNAB accuracy
- The memo field is your best friend: When you split a receipt, list the items in the memo. Use a tag like
#HSA-Receipt-Filed. This makes it easy to search your history if you ever need to reconcile during an audit. - Don't wait: Age of Money only stays accurate when you’re honest with your transactions. Entering these splits at the end of the month is a recipe for errors. Do it while the receipt is still in your hand.
- The medical buffer category: Keep a small permanent balance (like $100) in a buffer category. This covers small pharmacy runs so you don't have to WAM (Wait and Move) money every time you buy aspirin.
How Snapt can help automate the headache
If manually splitting a Walgreens receipt sounds like a chore, you aren't alone. This is exactly why we built Snapt.
Snapt is an AI-powered receipt scanner built for YNAB users. Instead of squinting at a receipt and doing mental math to figure out what was HSA-qualified, you just snap a photo. Snapt identifies the qualified medical items, calculates the sub-totals, and suggests the split categories.
It pushes the data directly into YNAB as a split transaction, memo notes included. You get the accuracy of a bookkeeper with the speed of a photo.
Stop dreading the pharmacy receipt. Let Snapt handle the math so you can focus on staying healthy and keeping your budget in balance.
Ready to simplify your medical spending? Try Snapt for YNAB today and turn your receipt pile into a perfectly organized budget.