I just refinanced my primary residence and spent way too long figuring out how to properly track the closing costs in Beancount. The tax treatment is more complex than I expected - some costs get amortized, some get expensed, and some affect your cost basis. Here’s what I learned.
The Three Categories of Refinance Closing Costs
When you refinance, your closing costs fall into three buckets with different tax treatments:
- Amortize over the loan life - Most financing costs (points, origination fees)
- Add to property basis - Some costs affect your cost basis (mainly relevant if you sell)
- Expense immediately - Very few costs can be deducted right away
My Account Structure for Tracking Refinance
; === REFINANCE TRACKING ACCOUNTS ===
2025-06-01 open Assets:Property:123MainSt:CostBasis USD
2025-06-01 open Assets:Property:123MainSt:RefinanceCosts USD
2025-06-01 open Assets:Property:123MainSt:RefinanceCosts:AccumAmort USD
; === AMORTIZATION EXPENSE ===
2025-06-01 open Expenses:Housing:123MainSt:AmortizedClosingCosts USD
; === LIABILITIES ===
2025-06-01 open Liabilities:Mortgage:123MainSt:Original USD ; Closes out
2025-06-01 open Liabilities:Mortgage:123MainSt:Refinance USD ; New loan
Recording the Refinance Transaction
Here’s how I recorded my refinance closing:
; Old loan balance: $320,000
; New loan: $350,000 (cash-out refi)
; Closing costs: $8,750
2025-06-15 * "Title Company" "Refinance closing - 123 Main St"
; Pay off old mortgage
Liabilities:Mortgage:123MainSt:Original 320,000.00 USD
; Receive new loan proceeds
Liabilities:Mortgage:123MainSt:Refinance -350,000.00 USD
; Closing costs breakdown (amortize over loan life)
Assets:Property:123MainSt:RefinanceCosts 8,750.00 USD
breakdown: "See detail below"
; Net cash received
Assets:Bank:Checking 21,250.00 USD
note: "350000 - 320000 - 8750 = 21250"
; Detail the closing costs for documentation
2025-06-15 custom "refinance-closing-costs" "123 Main St"
; COSTS TO AMORTIZE (most closing costs)
loan-origination-fee: 1750.00 ; 0.5% of loan
discount-points: 3500.00 ; 1 point to buy down rate
appraisal-fee: 550.00
credit-report: 45.00
flood-certification: 25.00
tax-service-fee: 85.00
underwriting-fee: 995.00
title-search: 350.00
title-insurance-lender: 875.00
settlement-fee: 450.00
recording-fees: 125.00
total-amortizable: 8750.00
loan-term-months: 360
monthly-amortization: 24.31
annual-amortization: 291.67
Monthly Amortization Entry
Each month (or yearly, if you prefer), record the amortization:
; Monthly amortization
2025-07-01 * "Amortization" "Refinance closing costs - July 2025"
Expenses:Housing:123MainSt:AmortizedClosingCosts 24.31 USD
Assets:Property:123MainSt:RefinanceCosts:AccumAmort -24.31 USD
remaining-balance: 8725.69
months-remaining: 359
; Or do it annually
2025-12-31 * "Amortization" "2025 refinance cost amortization (6.5 months)"
Expenses:Housing:123MainSt:AmortizedClosingCosts 158.01 USD
Assets:Property:123MainSt:RefinanceCosts:AccumAmort -158.01 USD
note: "6.5 months: Jun 15 - Dec 31"
remaining-balance: 8591.99
years-remaining: 29.46
The Old Loan’s Unamortized Costs
Here’s something I almost missed: if your old loan had points or closing costs that you were amortizing, you can deduct the remaining balance when you refinance - but only if it’s with a different lender.
; If old loan had unamortized costs remaining
2025-06-15 custom "old-loan-amortization" "status"
original-closing-costs: 6200.00
amortized-to-date: 2066.67 ; 10 years into 30-year loan
remaining-unamortized: 4133.33
; Different lender - deduct remaining balance
2025-06-15 * "Amortization" "Write off old loan remaining costs - different lender"
Expenses:Housing:123MainSt:AmortizedClosingCosts 4133.33 USD
Assets:Property:123MainSt:OldRefinanceCosts:AccumAmort -4133.33 USD
reason: "Refinanced with different lender - deduct remaining"
; SAME lender - must continue amortizing over NEW loan
; 2025-06-15 * "Rollover" "Old loan costs to new loan term"
; Assets:Property:123MainSt:RefinanceCosts 4133.33 USD
; Assets:Property:123MainSt:OldRefinanceCosts:AccumAmort 4133.33 USD
; reason: "Same lender - continue amortizing over new 30 years"
Tracking the Net Benefit
I like to see my true refinance savings:
2025-06-15 custom "refinance-analysis" "123 Main St"
; OLD LOAN
old-interest-rate: 6.5%
old-monthly-payment: 2022.00
old-remaining-interest: 407920.00 ; Over remaining 20 years
; NEW LOAN
new-interest-rate: 5.75%
new-monthly-payment: 2042.00 ; Slightly higher (larger loan)
new-total-interest: 385120.00
; COSTS
closing-costs: 8750.00
cash-out-amount: 21250.00
; BREAK-EVEN ANALYSIS
monthly-interest-savings: 173.00
break-even-months: 51 ; 8750 / 173
total-lifetime-savings: 22800.00 ; Net of closing costs
If You Sell Before the Loan Term Ends
When you sell the property, you can deduct all remaining unamortized costs in that year:
; Selling 5 years after refinance
2030-08-15 custom "sale-amortization-deduction" "123 Main St"
original-costs: 8750.00
amortized-5-years: 1458.35 ; 24.31 * 60
remaining: 7291.65
; Deduct remaining in year of sale
2030-08-15 * "Amortization" "Final deduction - remaining refinance costs"
Expenses:Housing:123MainSt:AmortizedClosingCosts 7291.65 USD
Assets:Property:123MainSt:RefinanceCosts:AccumAmort -7291.65 USD
reason: "Property sold - deduct remaining unamortized costs"
Primary Residence vs Rental Property
For my primary residence, these amortized costs go on Schedule A (if I itemize). If this were a rental property, it would be different:
| Property Type | Tax Treatment | Form |
|---|---|---|
| Primary residence | Schedule A (if itemizing) | 1040 Schedule A |
| Rental property | Schedule E deduction | 1040 Schedule E |
| Rental property | First year: Form 4562 | Form 4562 |
Questions for the community:
- How do you handle points when part of the refi is used for home improvements? (I’ve heard you can deduct that portion immediately)
- Anyone have a good system for tracking multiple refinances over a property’s lifetime?
- For rental properties - do you track amortization separately from depreciation, or combine them somehow?
The monthly amortization entries feel tedious, but having accurate records for tax time makes it worth it.