How LLC Owners Save on Taxes in 2026

Musician Find more write-offs — search your profession or a specific deduction
Try:
Others Also Use These Strategies
Musician IRC §162

Music Software & Streaming Subscriptions

Self-employed musicians can deduct the cost of DAW software (Pro Tools, Ableton, Logic Pro, FL Studio), sample libraries, VST plug-ins, music notation software, streaming service subscriptions used for research, and any other software used in the music business.

Eligibility Requirements
  • Software used for music production, composition, or business
  • Self-employed musician with Schedule C income
  • Subscription or one-time purchase for business use
Example Savings Scenario

A musician spending $600/year on Ableton, $300 on sample libraries, and $200 on plug-ins deducts $1,100, saving $385 at a 35% rate.

MERNA Strategy Notes

Annual software subscriptions are fully deductible in the year paid. One-time purchases over $2,500 may need to be capitalized and depreciated unless Section 179 is elected.

Common Mistake: Personal streaming subscriptions (Spotify for personal listening) are not deductible — only business-purpose subscriptions qualify.
Musician IRC §162

Touring & Travel Expense Deduction

Self-employed musicians can deduct 100% of transportation costs (flights, train, rental cars, mileage) and lodging for business travel to gigs, tours, recording sessions, and music conferences. Meals are 50% deductible while traveling away from home overnight.

Eligibility Requirements
  • Travel is for a bona fide business purpose (gig, recording, conference)
  • Away from home overnight (for lodging and meal deductions)
  • Self-employed musician with Schedule C income
Example Savings Scenario

A musician who spends $15,000 on touring (flights, hotels, van rental) and $4,000 on meals deducts $15,000 + $2,000 (50% meals) = $17,000, saving $5,950 at 35%.

MERNA Strategy Notes

Keep a travel log with business purpose for each trip. Combine personal travel with business travel carefully — only the business portion is deductible.

Common Mistake: Mixing personal vacation with business travel requires careful allocation — only the business days are deductible.
Musician IRC §280A

Home Studio & Practice Space Deduction

Musicians who use a dedicated space at home for recording, practicing, or teaching can deduct a proportional share of rent or mortgage interest, utilities, internet, and home maintenance. Soundproofing, acoustic panels, and studio furniture are 100% deductible.

Eligibility Requirements
  • Dedicated space used regularly and exclusively for music business
  • Self-employed musician with Schedule C income
  • Space used for recording, practice, teaching, or administrative work
Example Savings Scenario

A musician with a 200 sq ft studio in a 1,500 sq ft home deducts 13.3% of $24,000 annual rent = $3,200/year, saving $1,120 at a 35% rate.

MERNA Strategy Notes

The "exclusive use" rule is strict — a room that doubles as a guest bedroom does not qualify. Use the simplified method ($5/sq ft, max 300 sq ft) or actual expense method.

Common Mistake: The home office must be used exclusively and regularly for business — mixed personal/business use disqualifies the deduction.
Musician IRC §162

Instrument Repair, Maintenance & Insurance Deductions

Self-employed musicians can deduct all costs of maintaining, repairing, and insuring instruments and equipment used for business. This includes guitar setups and fret work, piano tuning and regulation, drum head replacements, string replacements, bow rehairs, instrument insurance premiums (Clarion, Heritage), equipment maintenance contracts, and storage costs for instruments. These are recurring business expenses that are 100% deductible in the year paid.

Eligibility Requirements
  • Instruments and equipment used for business performances, recording, or teaching
  • Self-employed musician with Schedule C income
  • Repair and maintenance costs (not improvements that extend useful life)
  • Insurance premiums for business instruments
Example Savings Scenario

A musician spending $800/year on guitar setups, $400 on string replacements, and $600 on instrument insurance deducts $1,800, saving $630 at a 35% rate.

MERNA Strategy Notes

Instrument insurance (Clarion, Heritage, Anderson) is especially important for touring musicians — the premiums are fully deductible and protect against loss, theft, or damage on the road.

Common Mistake: Major improvements that significantly extend an instrument's useful life must be capitalized and depreciated rather than expensed in full. A $200 guitar setup is an expense; a $3,000 neck replacement may need to be depreciated.
Musician IRC §162

Manager, Agent & Booking Fee Deductions for Musicians

Self-employed musicians can deduct 100% of commissions and fees paid to managers, booking agents, entertainment attorneys, and business managers as ordinary and necessary business expenses. Manager commissions typically run 15–20% of gross income, booking agent fees run 10–15%, and entertainment attorney fees are billed hourly or as a percentage of deals. All of these are fully deductible on Schedule C.

Eligibility Requirements
  • Self-employed musician with Schedule C income
  • Fees paid to managers, agents, or attorneys for music business purposes
  • Documented with contracts and payment records
  • Payments for business (not personal) services
Example Savings Scenario

A musician earning $120,000 who pays a 15% manager commission ($18,000) and 10% booking agent fee ($12,000) deducts $30,000, saving $10,500 at a 35% effective rate.

MERNA Strategy Notes

Get written contracts with all managers and agents — this both protects you legally and provides the documentation the IRS requires for these deductions. Issue 1099-NEC forms to any manager or agent paid $600+ in a year.

Common Mistake: Payments to a family member acting as manager must be at arm's length (market rate) or the IRS may reclassify them as gifts. Document that the rate paid is consistent with industry norms.
Musician IRC §162 Uncle Kam Clients Only

Band Merchandise & Production Cost Deductions

Self-employed musicians who sell merchandise can deduct the cost of goods sold (COGS) — the direct cost of producing the merchandise. This includes screen printing costs for t-shirts, vinyl pressing and manufacturing costs, CD duplication, poster printing, sticker production, and any other physical merchandise produced for sale. The cost of an e-commerce platform (Shopify, Bandcamp) used to sell merch is also deductible as a business expense.

Eligibility Requirements
  • Self-employed musician who sells merchandise
  • Cost of goods sold (production costs) for merchandise
  • Platform fees for selling merchandise online
  • Shipping and fulfillment costs for merchandise orders
Example Savings Scenario

A musician who spends $8,000 pressing vinyl records and $3,000 on t-shirt production deducts $11,000 as COGS, reducing taxable income by $11,000 and saving $3,850 at 35%.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Musician IRC §162 Uncle Kam Clients Only

Stage Wear & Performance Clothing Deduction

Self-employed musicians can deduct the cost of stage costumes, performance outfits, and specialty clothing that is not suitable for everyday wear and is required for performances. This includes elaborate stage costumes, band uniforms, specialty footwear for performances, and any clothing that is clearly not adaptable to general use. Standard street clothes that could be worn off-stage do not qualify — the clothing must be distinctive and required for the performance.

Eligibility Requirements
  • Clothing is required as a condition of employment or performance
  • Not suitable for everyday wear (costumes, uniforms, specialty stage wear)
  • Self-employed musician with Schedule C income
  • Documented as a business expense with receipts
Example Savings Scenario

A touring musician spending $2,500/year on stage costumes, specialty boots, and band uniforms deducts the full amount, saving $875 at a 35% effective rate.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Musician IRC §162 Uncle Kam Clients Only

Music Distribution & Streaming Platform Fee Deductions

Self-employed musicians can deduct all fees paid to music distribution platforms and streaming services used for business. This includes DistroKid annual plans, TuneCore distribution fees, CD Baby distribution and sync licensing fees, Bandcamp selling fees, SoundCloud Pro subscription, Spotify for Artists tools, YouTube Content ID registration fees, and any other platform fees paid to distribute or monetize music.

Eligibility Requirements
  • Self-employed musician with Schedule C income
  • Platform fees for distributing or monetizing music
  • Subscription or per-release fees for distribution services
  • Fees paid in the tax year being reported
Example Savings Scenario

A musician paying $20/year for DistroKid, $50 for SoundCloud Pro, and $200 in CD Baby distribution fees deducts $270, saving $95 at a 35% effective rate.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Business IRC §199A Uncle Kam Clients Only 2026 Law Update

Qualified Business Income (QBI) Deduction

Pass-through business owners (sole props, partnerships, S-Corps, LLCs) can deduct up to 23% of qualified business income starting in 2026, permanently under the OBBBA. The deduction reduces effective tax rates significantly.

Eligibility Requirements
  • Income from a pass-through entity or sole proprietorship
  • Taxable income below income thresholds for full deduction (consult advisor for 2026 inflation-adjusted limits)
  • Specified service trades may be phased out above thresholds
  • New minimum deduction of $400 for taxpayers with at least $1,000 of active QBI
Example Savings Scenario

A consultant earning $200,000 in QBI deducts $46,000 (23%), saving $17,020 at a 37% rate — $2,220 more than under the old 20% rule.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Self-Employed IRC §401, §408 Uncle Kam Clients Only

Retirement Plan Contributions (Self-Employed)

Self-employed individuals have access to powerful retirement plans — Solo 401(k), SEP-IRA, SIMPLE IRA — with contribution limits far exceeding W-2 employee options.

Eligibility Requirements
  • Net self-employment income
  • Plan established by December 31 (Solo 401k) or tax deadline (SEP-IRA)
  • No full-time employees for Solo 401(k)
Example Savings Scenario

Maximizing a Solo 401(k) at ~$70,000 in 2026 saves $25,900 at a 37% rate — the equivalent of a $25,900 tax refund.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Retirement IRC §401(k) Uncle Kam Clients Only

Solo 401(k) Contribution

Self-employed individuals can contribute both as employee ($24,500 in 2026, or $31,000 if 50+) and employer (up to 25% of compensation), for a combined maximum of approximately $70,000.

Eligibility Requirements
  • Self-employed with no full-time employees (other than spouse)
  • Net self-employment income
  • Roth option available for after-tax contributions
Example Savings Scenario

A self-employed consultant earning $200,000 contributes ~$70,000 to a Solo 401(k), reducing taxable income to $130,000 and saving $25,900 at a 37% rate.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Retirement IRC §408(k) Uncle Kam Clients Only

SEP-IRA Contribution

Self-employed individuals and small business owners can contribute up to 25% of net self-employment income (maximum $72,000 in 2026) to a SEP-IRA with minimal administrative requirements.

Eligibility Requirements
  • Self-employed or small business owner
  • Net self-employment income
  • Can be established and funded up to tax filing deadline including extensions
Example Savings Scenario

A freelancer earning $150,000 contributes $27,500 (25% × $110,000 net SE income) to a SEP-IRA, saving $10,175 in taxes at a 37% rate.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Musician IRC §162 Uncle Kam Clients Only

Music Lessons, Masterclasses & Professional Development

Self-employed musicians can deduct the cost of music lessons, masterclasses, workshops, and music conferences that maintain or improve skills required in their current music business. This includes private lessons with a master teacher, online music courses (Berklee Online, Coursera music production), music production workshops, music business conferences (SXSW, A3C, NAMM), and any education that directly relates to your current music career.

Eligibility Requirements
  • Education maintains or improves skills in your current music profession
  • Self-employed musician with Schedule C income
  • Does not qualify you for a new career (must be in existing music field)
  • Conferences must have a primary business purpose
Example Savings Scenario

A musician spending $2,000 on private lessons, $500 on a music production course, and $1,500 on conference registration and travel deducts $4,000, saving $1,400 at 35%.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Self-Employed IRC §164(f) Uncle Kam Clients Only

Self-Employment Tax Deduction

Self-employed individuals can deduct 50% of the self-employment tax they pay (the employer-equivalent portion) as an above-the-line deduction, reducing adjusted gross income.

Eligibility Requirements
  • Net self-employment income
  • Filed Schedule SE
  • Available to all self-employed individuals regardless of itemizing
Example Savings Scenario

A freelancer with $100,000 in net SE income pays $14,130 in SE tax. The 50% deduction ($7,065) saves $2,614 at a 37% rate.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Self-Employed IRC §162(l) Uncle Kam Clients Only

Self-Employed Health Insurance Deduction

Self-employed individuals can deduct 100% of health insurance premiums paid for themselves, their spouse, and dependents as an above-the-line deduction.

Eligibility Requirements
  • Self-employed with net profit
  • Not eligible for employer-sponsored health insurance
  • Includes medical, dental, and long-term care premiums
Example Savings Scenario

Paying $18,000/year in family health insurance premiums deducts the full amount, saving $6,660 at a 37% rate.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Musician IRC §162 Uncle Kam Clients Only

AFM Union Dues & Music Guild Membership Deductions

Self-employed musicians can deduct dues paid to professional unions and guilds as ordinary and necessary business expenses. This includes American Federation of Musicians (AFM) dues, SAG-AFTRA dues for musicians who perform in film and TV, NARAS (Grammy organization) membership, and any other professional music organization membership that provides direct business benefits.

Eligibility Requirements
  • Self-employed musician with Schedule C income
  • Dues to professional music unions (AFM, SAG-AFTRA)
  • Professional organization memberships with direct business benefit
  • Documented with receipts and membership records
Example Savings Scenario

A session musician paying $600/year in AFM dues and $300 in NARAS membership deducts $900, saving $315 at a 35% effective rate.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Business IRC §179 Uncle Kam Clients Only

Section 179 Expensing

Immediately expense the full cost of qualifying business equipment, software, and certain vehicles in the year of purchase instead of depreciating over multiple years.

Eligibility Requirements
  • Business equipment, machinery, or software
  • Property placed in service during the tax year
  • Business income must be sufficient (cannot create a loss with §179)
Example Savings Scenario

Purchasing $500,000 in equipment. Full §179 deduction saves $185,000 in taxes at a 37% rate in Year 1 vs. spreading over 5–7 years.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Chiropractor IRC §179 Uncle Kam Clients Only

Chiropractic Tables, Adjustment Equipment & Therapy Devices

Chiropractic adjustment tables, drop tables, flexion-distraction tables, decompression equipment, ultrasound therapy units, electrical stimulation devices, and cold laser therapy equipment are fully deductible under Section 179.

Eligibility Requirements
  • Own or operate a chiropractic practice
  • Equipment placed in service during the tax year
  • Used exclusively for patient care
Example Savings Scenario

Dr. Johnson purchases 3 adjustment tables ($45,000), a decompression table ($28,000), and therapy devices ($22,000) — full $95,000 deducted in Year 1, saving $31,350 at 33%.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Business IRC §1366, Rev. Rul. 74-44 Uncle Kam Clients Only

S-Corp Reasonable Salary Optimization

S-Corp shareholders pay payroll taxes only on their "reasonable salary," not on all business profits. Distributions above the salary avoid 15.3% self-employment tax.

Eligibility Requirements
  • Operate as an S-Corporation
  • Pay yourself a reasonable salary for services rendered
  • Take remaining profits as distributions
Example Savings Scenario

A business earning $300,000 net. Salary set at $80,000 (reasonable). Distributions: $220,000. SE tax savings: $220,000 × 15.3% = $33,660/year.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Retirement IRC §223 Uncle Kam Clients Only

HSA Triple Tax Advantage

Health Savings Accounts offer a triple tax advantage: contributions are tax-deductible, growth is tax-free, and withdrawals for qualified medical expenses are tax-free. The OBBBA also expanded HSA eligibility to include bronze and catastrophic plans starting 2026.

Eligibility Requirements
  • Enrolled in a High Deductible Health Plan (HDHP) or qualifying bronze/catastrophic plan (new for 2026)
  • Not enrolled in Medicare
  • Not claimed as a dependent on someone else's return
Example Savings Scenario

Contributing $8,750 (family) to an HSA in 2026 saves $3,237 in taxes at a 37% rate. Investing the balance for 20 years at 7% grows to $33,800+ tax-free.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Self-Employed IRC §162 Uncle Kam Clients Only

Education & Professional Development Deduction

Deduct education expenses that maintain or improve skills required in your current trade or business, including courses, books, subscriptions, and professional conferences.

Eligibility Requirements
  • Education maintains or improves skills in current trade
  • Not required to meet minimum educational requirements for a new profession
  • Self-employed, freelancer, or business owner
Example Savings Scenario

Spending $5,000 on courses, conferences, and books deducts the full amount, saving $1,850 at a 37% rate.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Therapist IRC §280A Uncle Kam Clients Only

Home Office Deduction for Therapists

Therapists who maintain a dedicated space in their home used exclusively and regularly for client sessions or administrative work qualify for the home office deduction. You can deduct a proportional share of rent or mortgage interest, utilities, internet, and homeowners insurance based on the square footage of the therapy space relative to total home square footage.

Eligibility Requirements
  • Dedicated room used exclusively for therapy sessions or administrative work
  • Space used regularly (not occasionally)
  • Can be a home office for telehealth sessions or in-person sessions
  • Works for both renters and homeowners
Example Savings Scenario

A therapist with a 200 sq ft home office in a 1,500 sq ft home (13.3%) paying $2,500/month rent deducts $3,990/year. A homeowner with $18,000 in mortgage interest and utilities deducts $2,394/year.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Software Engineer IRC §280A Uncle Kam Clients Only

Home Office Deduction for Remote Software Engineers

Remote software engineers who work from a dedicated home office space can deduct a proportional share of rent, mortgage interest, utilities, and internet. Self-employed only — W-2 employees cannot claim this deduction under current tax law.

Eligibility Requirements
  • Self-employed (1099/freelance) software engineer
  • Dedicated workspace used exclusively and regularly for business
  • Principal place of business or where clients are met
Example Savings Scenario

A freelance developer with a 180 sq ft office in a 1,400 sq ft apartment ($2,800/month rent) deducts $4,334/year in home office expenses.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Business IRC §280A Uncle Kam Clients Only

Home Office Deduction

Deduct a portion of your home expenses (mortgage interest, rent, utilities, insurance, depreciation) based on the percentage of your home used exclusively and regularly for business.

Eligibility Requirements
  • Self-employed, freelancer, or business owner
  • Space used exclusively and regularly for business
  • Principal place of business or where clients are met
Example Savings Scenario

A 200 sq ft office in a 2,000 sq ft home = 10% allocation. $30,000 in home expenses × 10% = $3,000 deduction, saving $1,110 at a 37% rate.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Business Expenses IRC §162 / IRC §280A Uncle Kam Clients Only

Studio Space & Creative Workspace Deduction

If you rent a separate studio space for your creative work, the full cost of rent, utilities, and equipment for that space is deductible. If you use a dedicated room in your home exclusively as a studio, it qualifies for the home office deduction. This applies to photography studios, podcast recording studios, video production spaces, and any other dedicated creative workspace.

Eligibility Requirements
  • Dedicated space used exclusively for business creative work
  • Rented studio: full cost deductible; home studio: home office deduction rules apply
  • Self-employed creative professional
Example Savings Scenario

A photographer renting a studio for $1,500/month deducts $18,000/year in rent, saving $5,400–$7,200 in taxes.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Home Health Care Business IRC §162, §132(d) Uncle Kam Clients Only

Caregiver Mileage & Vehicle Reimbursement

Home health care businesses incur significant vehicle costs — caregivers drive to client homes, supervisors conduct home visits, and owners travel to meetings and training. The 2026 IRS standard mileage rate is 70 cents per mile for business use. Agencies can reimburse caregivers for mileage through an accountable plan, making the reimbursement tax-free to the employee and fully deductible to the business. Alternatively, actual vehicle expenses (fuel, insurance, maintenance, depreciation) can be deducted based on business-use percentage.

Eligibility Requirements
  • Business miles driven to client homes
  • Supervisor home visit mileage
  • Training, licensing, and continuing education travel
  • Caregiver mileage reimbursements through accountable plan
  • Owner/operator vehicle used for business
Example Savings Scenario

A home health care agency owner driving 20,000 business miles per year deducts $14,000 at the 2026 rate of 70 cents per mile, saving $5,180 in taxes at 37%.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Dentist IRC §179 Uncle Kam Clients Only

Dental Equipment & Operatory Build-Out — Section 179

Dental chairs, X-ray machines, CBCT scanners, intraoral cameras, autoclaves, and operatory build-outs are 100% deductible under Section 179. A $200,000 equipment purchase saves $66,000+ in taxes at the 33% bracket.

Eligibility Requirements
  • Own or operate a dental practice
  • Equipment placed in service during the tax year
  • Used exclusively for dental practice
Example Savings Scenario

Dr. Chen purchases a new CBCT scanner ($85,000) and two dental chairs ($40,000) — full $125,000 deducted in Year 1, saving $41,250 at 33%.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Pharmacist IRC §179 Uncle Kam Clients Only

Pharmacy Dispensing Equipment & Automation Systems

Automated dispensing systems (Parata, ScriptPro), pill counters, compounding equipment, refrigeration units, and pharmacy management software are fully deductible under Section 179 for independent pharmacy owners.

Eligibility Requirements
  • Own or operate an independent pharmacy
  • Equipment placed in service during the tax year
  • Used exclusively for pharmacy operations
Example Savings Scenario

An independent pharmacy owner purchasing a Parata dispensing robot ($120,000) deducts the full amount in Year 1 — saving $39,600 at 33%.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Chiropractor IRC §179 Uncle Kam Clients Only

Chiropractic X-Ray Equipment & Digital Imaging Systems

Digital X-ray systems, full-spine X-ray units, and posture analysis software are major capital expenses for chiropractors — and fully deductible under Section 179.

Eligibility Requirements
  • Own or operate a chiropractic practice
  • X-ray equipment placed in service during the tax year
  • Used exclusively for patient diagnosis
Example Savings Scenario

Dr. Kim purchases a digital X-ray system for $55,000 — full $55,000 deducted in Year 1, saving $18,150 at 33%.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Veterinarian IRC §179 Uncle Kam Clients Only

Veterinary Equipment — Ultrasound, Surgical Suite & Diagnostics

Veterinary ultrasound machines, digital X-ray systems, surgical suites, anesthesia equipment, dental units, endoscopes, and diagnostic analyzers are fully deductible under Section 179.

Eligibility Requirements
  • Own or operate a veterinary practice
  • Equipment placed in service during the tax year
  • Used exclusively for veterinary care
Example Savings Scenario

Dr. Thompson purchases an ultrasound ($45,000), digital X-ray ($55,000), and surgical suite equipment ($80,000) — full $180,000 deducted in Year 1, saving $59,400 at 33%.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Software Engineer IRC §179 Uncle Kam Clients Only

MacBook Pro, Monitors & Developer Hardware — Section 179

MacBook Pro, custom PC builds, multiple monitors, mechanical keyboards, ergonomic chairs, and other hardware used for software development are fully deductible under Section 179 for self-employed engineers.

Eligibility Requirements
  • Self-employed (1099/freelance) software engineer
  • Hardware used exclusively or primarily for business
  • Equipment placed in service during the tax year
Example Savings Scenario

A freelance developer buying a MacBook Pro M3 Max ($3,999), two 4K monitors ($1,200), and a mechanical keyboard ($200) deducts $5,399 — saving $1,782 at 33%.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Business IRC §168(k) Uncle Kam Clients Only 2026 Law Update

Bonus Depreciation

Deduct 100% of the cost of qualifying new or used property in the first year it is placed in service. The OBBBA permanently restored 100% bonus depreciation for property with a recovery period of 20 years or less.

Eligibility Requirements
  • New or used qualifying property
  • Property with recovery period of 20 years or less
  • Placed in service after January 19, 2025
Example Savings Scenario

A $1M equipment purchase at 100% bonus depreciation generates a $1M Year 1 deduction, saving $370,000 at a 37% rate.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Personal Trainer IRC §162 Uncle Kam Clients Only

Gym Space Rental, Studio Rental & Training Facility Fees

Gym space rental fees, private studio rental, hourly facility rental, and co-working fitness space memberships used for training clients are fully deductible.

Eligibility Requirements
  • Self-employed personal trainer
  • Gym or studio space rented for training clients
  • Rental fees paid during the tax year
Example Savings Scenario

A personal trainer renting a private studio for $1,200/month ($14,400/year) deducts the full amount — saving $4,752 at 33%.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Business IRC §162, §179 Uncle Kam Clients Only

Vehicle & Mileage Deduction

Deduct business vehicle expenses using the standard mileage rate or actual expenses (depreciation, gas, insurance, repairs). Section 179 and 100% bonus depreciation allow full expensing of heavy SUVs and trucks in Year 1.

Eligibility Requirements
  • Vehicle used for business purposes
  • Mileage log maintained for standard rate method
  • Heavy SUV (6,000+ lbs GVWR) for Section 179 bonus
Example Savings Scenario

Driving 20,000 business miles at 72.5¢/mile = $14,500 deduction. A $80,000 SUV over 6,000 lbs can be fully expensed under 100% bonus depreciation, saving $29,600 at 37%.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Business Expenses IRC §162 Uncle Kam Clients Only

Coworking Space & Office Rent Deduction

If you rent a coworking space, shared office, or dedicated office for your business, the full cost is deductible. This includes WeWork, Regus, local coworking memberships, and any other office rental. Monthly membership fees, day passes, and dedicated desk or private office costs all qualify.

Eligibility Requirements
  • Coworking space or office used for business purposes
  • Self-employed, freelancer, or business owner
  • Monthly or annual fees paid for the space
Example Savings Scenario

A freelancer paying $400/month for a coworking membership deducts $4,800/year, saving $1,440–$1,920 in taxes.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Musician IRC §1362, §3121 Uncle Kam Clients Only

S-Corp Election for Musicians

Musicians earning $80,000+ in net self-employment income can elect S-Corp status to reduce self-employment (SE) tax. As an S-Corp owner, you pay SE tax only on your salary — not on distributions. This can save $10,000–$20,000/year at higher income levels.

Eligibility Requirements
  • Net self-employment income of $80,000+
  • Willing to pay yourself a reasonable salary
  • File Form 2553 to elect S-Corp status (deadline: March 15)
Example Savings Scenario

A musician with $150,000 net income pays $21,240 in SE tax as a sole proprietor. With an S-Corp and $70,000 salary, SE tax drops to $9,912 — saving $11,328/year.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Musician IRC §162, §167 Uncle Kam Clients Only

Sync Licensing, Royalty Income & Music Publishing Deductions

Musicians who earn income from sync licensing (TV, film, commercials), streaming royalties (Spotify, Apple Music, YouTube), and music publishing can deduct all direct costs of generating that income. This includes music attorney fees for licensing negotiations, copyright registration fees ($65 per work), music distribution platform fees (DistroKid, TuneCore, CD Baby), PRO membership fees (ASCAP, BMI, SESAC), and any costs related to pitching music for sync placements.

Eligibility Requirements
  • Self-employed musician earning royalty or licensing income
  • Expenses directly related to generating the licensing/royalty income
  • Music attorney fees for licensing agreements
  • Distribution and PRO membership fees
Example Savings Scenario

A musician earning $30,000 in sync licensing who pays $3,000 in music attorney fees, $500 in copyright registrations, and $200 in distribution fees deducts $3,700, saving $1,295 at 35%.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Musician IRC §401(k), §408(k) Uncle Kam Clients Only

Solo 401(k) and SEP-IRA for Musicians

Self-employed musicians can make tax-deductible retirement contributions that dramatically reduce taxable income. A Solo 401(k) allows contributions of up to $70,000/year ($77,500 if age 50+) as both employee and employer. A SEP-IRA allows contributions of up to 20% of net self-employment income (max $70,000).

Eligibility Requirements
  • Self-employed musician with net income from music
  • Solo 401(k): no full-time employees other than spouse
  • SEP-IRA: available even with part-time employees
  • Must open Solo 401(k) by December 31 to contribute for the current year
Example Savings Scenario

A musician earning $80,000 net who contributes $20,000 to a Solo 401(k) reduces taxable income to $60,000, saving $7,000 in federal taxes at a 35% effective rate.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Home Health Care Business IRC §199A Uncle Kam Clients Only

QBI Deduction (20% Pass-Through Deduction) for Home Care Agencies

Home health care businesses structured as sole proprietorships, partnerships, LLCs, or S-Corps may qualify for the Qualified Business Income (QBI) deduction under IRC §199A — a 20% deduction on net business income. For a home care agency generating $200,000 in net profit, this deduction alone saves $14,800 in federal taxes. Home health care is generally NOT classified as a Specified Service Trade or Business (SSTB), which means the income limitation phase-out that applies to doctors and lawyers typically does not apply — making this deduction available at higher income levels.

Eligibility Requirements
  • Home health care agency structured as LLC, S-Corp, or sole proprietor
  • Taxable income below $197,300 (single) or $394,600 (married) — full deduction
  • Income above thresholds: W-2 wage limitation applies
  • Home health care is generally NOT an SSTB — no income cap for most agencies
Example Savings Scenario

A home health care agency owner with $250,000 in net business income takes a $50,000 QBI deduction, saving $18,500 in federal taxes at 37%.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Therapist IRC §401(k), §408(k) Uncle Kam Clients Only

Solo 401(k) and SEP-IRA for Therapists

Therapists in private practice can make tax-deductible retirement contributions that dramatically reduce taxable income. A Solo 401(k) allows contributions of up to $70,000/year ($77,500 if age 50+) in 2026 as both employee and employer. A SEP-IRA allows contributions of up to 20% of net self-employment income (max $70,000). Both reduce taxable income dollar-for-dollar and grow tax-deferred until retirement.

Eligibility Requirements
  • Self-employed therapist with net income from private practice
  • Solo 401(k): no full-time employees other than spouse
  • SEP-IRA: available even with part-time employees
  • Must open Solo 401(k) by December 31 to contribute for the current year
Example Savings Scenario

A therapist earning $100,000 net who contributes $30,000 to a Solo 401(k) reduces taxable income to $70,000, saving $8,400 in federal taxes at a 28% effective rate — plus the money grows tax-deferred.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Retirement IRC §412 Uncle Kam Clients Only

Defined Benefit Pension Plan

A defined benefit plan allows high-income self-employed individuals and business owners to contribute $200,000–$300,000 per year based on actuarial calculations, far exceeding 401(k) limits.

Eligibility Requirements
  • Self-employed or small business owner
  • High income ($300,000+) for maximum benefit
  • Actuarial calculation required annually
  • Commitment to fund the plan each year
Example Savings Scenario

A physician earning $500,000 contributes $265,000 to a defined benefit plan, saving $98,050 in taxes at a 37% rate — far exceeding the $69,000 Solo 401(k) limit.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
What Most Musicians Don't Know

Your instruments, recording gear, and music software are 100% deductible business expenses — Section 179 lets you write off the full cost in the year of purchase instead of depreciating over years.

A dedicated home studio or practice room qualifies for the home office deduction, covering a proportional share of rent, mortgage interest, utilities, and soundproofing costs.

An S-Corp election can save musicians earning $80,000+ net income $8,000–18,000/year in self-employment taxes — most touring and recording artists never make this structural move.

Who Uses This Strategy

This write-off is commonly used by the following taxpayer profiles. Click to see all strategies for your situation.

Common Questions for Musicians

Get answers to the most frequently asked tax questions for your profession.

What tax deductions can a musician claim?
Self-employed musicians can deduct instruments, recording equipment, music software (DAWs, plug-ins, sample libraries), home studio expenses, touring and travel costs, music lessons, professional development, marketing, website costs, health insurance premiums, and retirement contributions. Most musicians miss $6,000–$25,000 in deductions annually.
Can a musician deduct instruments and recording equipment?
Yes — instruments, amplifiers, microphones, PA systems, recording interfaces, and any gear used for business are 100% deductible. Section 179 and bonus depreciation allow you to write off the full cost in the year of purchase instead of depreciating over years. Keep receipts and document business use percentage if equipment is also used personally.
Can a musician deduct a home studio?
Yes — if you have a dedicated room used exclusively for recording, practicing, or music business work, you qualify for the home office deduction. You can deduct a proportional share of rent or mortgage interest, utilities, internet, and soundproofing. A 200 sq ft studio in a 1,500 sq ft home = 13.3% of all home expenses deductible.
Are touring and travel expenses deductible for musicians?
Yes — 100% of transportation costs (flights, rental cars, mileage) and lodging for business travel to gigs, tours, recording sessions, and music conferences are deductible. Meals are 50% deductible while traveling away from home overnight. Keep a travel log with the business purpose for each trip.
Should a musician form an S-Corp?
Musicians earning $80,000+ in net self-employment income typically save $8,000–$18,000/year with an S-Corp election. You pay yourself a reasonable salary and take remaining profit as distributions, avoiding self-employment tax on the distribution portion. The S-Corp pays for itself in Year 1 for most full-time musicians at this income level.
0
0 write-offs saved
Tap to view your list

Your Biggest Missed Deduction Is Probably Locked Above

Uncle Kam clients save an average of $6,000–$40,000/year. The strategies that make that possible are unlocked on a free strategy call.

Book A Free Strategy Call Free consultation. No obligation.
';// ── Open in a new window and print ─────────────────────────────── var win = window.open('', '_blank', 'width=850,height=700,scrollbars=yes,noopener=0'); if (!win) { // Fallback: inject an iframe for printing if popup is blocked var iframe = document.createElement('iframe'); iframe.style.cssText = 'position:fixed;top:-9999px;left:-9999px;width:850px;height:700px;border:0;'; document.body.appendChild(iframe); iframe.contentDocument.open(); iframe.contentDocument.write(html); iframe.contentDocument.close(); setTimeout(function() { iframe.contentWindow.focus(); iframe.contentWindow.print(); setTimeout(function() { document.body.removeChild(iframe); }, 2000); }, 600); return; } win.document.open(); win.document.write(html); win.document.close(); win.focus(); setTimeout(function() { win.print(); }, 600); }// ── Email Unlock: post to GHL silently, expand locked cards ────────────── function ukwfUnlockStrategies(e) { e.preventDefault(); // Support both the main wall form AND per-card gate forms var form = e ? e.target : null; var gateInput = form ? form.querySelector('.ukwf-gate-email-input') : null; var mainInput = document.getElementById('ukwf-unlock-email'); var emailInput = (gateInput && gateInput.value.trim()) ? gateInput : mainInput; var errorEl = document.getElementById('ukwf-unlock-error'); var email = emailInput ? emailInput.value.trim() : ''; // Also check the gate input if main is empty if (!email && gateInput) email = gateInput.value.trim(); // Basic email validation if (!email || !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)) { if (errorEl) errorEl.style.display = 'block'; if (gateInput) { gateInput.style.borderColor = '#ff6b6b'; gateInput.focus(); } else if (emailInput) emailInput.focus(); return; } if (errorEl) errorEl.style.display = 'none'; if (gateInput) gateInput.style.borderColor = ''; // Disable all unlock buttons document.querySelectorAll('.ukwf-email-unlock-btn, .ukwf-gate-email-btn').forEach(function(b) { b.disabled = true; b.textContent = 'Unlocking...'; }); // Send lead to GHL via server-side PHP AJAX (bypasses webhook workflow) var professionEl = document.querySelector('.ukwf-profile-name'); var professionName = professionEl ? professionEl.textContent.trim().replace(/\s*Tax Write-Offs\s*&?\s*Deductions\s*$/i, '').trim() : ''; var nameParts = professionName.split('/'); var ghlFirstName = nameParts[0] ? nameParts[0].trim() : professionName; var ghlLastName = nameParts[1] ? nameParts[1].trim() : 'Tax Write-Off Finder'; var ajaxUrl = (typeof ukwfConfig !== 'undefined' && ukwfConfig.ajaxUrl) ? ukwfConfig.ajaxUrl : '/wp-admin/admin-ajax.php'; var nonce = (typeof ukwfConfig !== 'undefined' && ukwfConfig.leadNonce) ? ukwfConfig.leadNonce : ''; var formData = new FormData(); formData.append('action', 'ukwf_ghl_lead'); formData.append('nonce', nonce); formData.append('email', email); formData.append('firstName', ghlFirstName); formData.append('lastName', ghlLastName); formData.append('profession', professionName); formData.append('source', 'ukwf-unlock'); formData.append('page', window.location.pathname); fetch(ajaxUrl, { method: 'POST', body: formData }).catch(function() {}); // fire-and-forget // Expand all locked cards immediately ukwfDoUnlock(); } function ukwfDoUnlock() { // Hide the email wall var wall = document.getElementById('ukwf-email-unlock-wall'); if (wall) { wall.style.transition = 'opacity 0.3s ease'; wall.style.opacity = '0'; setTimeout(function() { wall.style.display = 'none'; }, 300); } // Unlock all locked cards instantly — no stagger (stagger caused 4+ second delay for 70+ cards) var lockedCards = document.querySelectorAll('.ukwf-result-card--locked'); lockedCards.forEach(function(card) { // Remove locked state — keep collapsed so user can open each card individually card.classList.remove('ukwf-result-card--locked'); card.classList.add('ukwf-result-card--open'); // Clear any inline styles that might block the toggle var body = card.querySelector('.ukwf-result-body'); if (body) { body.style.display = ''; body.style.maxHeight = ''; } // Remove lock badge var badge = card.querySelector('.ukwf-result-lock-badge'); if (badge) badge.style.display = 'none'; // Replace the locked gate with an unlocked badge var gate = card.querySelector('.ukwf-locked-strategy-gate'); if (gate) { gate.innerHTML = '
Unlocked — tap to expand
'; } }); // Show success banner var banner = document.getElementById('ukwf-unlock-banner'); if (banner) { banner.style.display = 'flex'; } // Persist unlock in localStorage so it survives refresh, tab close, and navigation // Uses the same ukwfSetUnlocked() that the book-call path uses, which sets // localStorage key 'ukwf_unlocked' = '1'. The main script block already checks // ukwfIsUnlocked() on page load and calls ukwfUnlockAll() automatically. if (typeof ukwfSetUnlocked === 'function') { ukwfSetUnlocked(); } else { try { localStorage.setItem('ukwf_unlocked', '1'); } catch(err) {} } // Also run the main unlock function to handle any card variants we might miss if (typeof ukwfUnlockAll === 'function') { ukwfUnlockAll(); } } // NOTE: Auto-unlock on page load is handled by the main script block which // checks ukwfIsUnlocked() and calls ukwfUnlockAll(). No DOMContentLoaded // listener needed here (it was broken anyway because LiteSpeed defers scripts // past DOMContentLoaded)./* ── Sticky Save Bar ───────────────────────────────────────────────── */ (function() { var SAVED_KEY = 'ukwf_saved_v2'; var bar = document.getElementById('ukwf-sticky-save-bar'); var countEl = document.getElementById('ukwf-sticky-save-count'); var badgeEl = document.getElementById('ukwf-sticky-cart-badge'); var savingsWrap = document.getElementById('ukwf-sticky-save-savings'); var savingsRange = document.getElementById('ukwf-sticky-savings-range'); if (!bar || !countEl) return;var _prevCount = 0;/* Parse a savings string like "$1,200–$4,500/year" -> {min, max} */ function parseSavings(str) { if (!str) return null; var nums = str.replace(/[^0-9]/g, ' ').trim().split(/\s+/).filter(Boolean); var vals = nums.map(function(n) { return parseInt(n, 10); }).filter(function(n) { return !isNaN(n) && n > 0; }); if (vals.length === 0) return null; if (vals.length === 1) return { min: vals[0], max: vals[0] }; return { min: Math.min.apply(null, vals), max: Math.max.apply(null, vals) }; }/* Format a number as $XK or $X.XM */ function fmtMoney(n) { if (n >= 1000000) return '$' + (n / 1000000).toFixed(1).replace(/\.0$/, '') + 'M'; if (n >= 1000) return '$' + Math.round(n / 1000) + 'K'; return '$' + n.toLocaleString(); }/* Animated count-up for a single element */ function animateCount(el, from, to, duration) { if (from === to) { el.textContent = to; return; } var start = null; function step(ts) { if (!start) start = ts; var progress = Math.min((ts - start) / duration, 1); var ease = 1 - Math.pow(1 - progress, 3); el.textContent = Math.round(from + (to - from) * ease); if (progress < 1) requestAnimationFrame(step); else el.textContent = to; } requestAnimationFrame(step); }function getSaved() { try { return JSON.parse(localStorage.getItem(SAVED_KEY) || '[]'); } catch(e) { return []; } }function updateBar() { var saved = getSaved(); var n = saved.length;/* Count-up animation when count changes */ if (n !== _prevCount) { animateCount(countEl, _prevCount, n, 600); if (badgeEl) animateCount(badgeEl, _prevCount, n, 600); /* Pop animation on bar when count increases */ if (n > _prevCount) { bar.classList.remove('ukwf-sticky-bar-pop'); void bar.offsetWidth; bar.classList.add('ukwf-sticky-bar-pop'); } _prevCount = n; }if (n > 0) { bar.classList.add('ukwf-sticky-save-bar--visible');/* Calculate total savings range */ var totalMin = 0, totalMax = 0, hasSavings = false; saved.forEach(function(item) { var p = parseSavings(item.savings || ''); if (p) { totalMin += p.min; totalMax += p.max; hasSavings = true; } });if (hasSavings && savingsWrap && savingsRange) { var rangeStr = totalMin === totalMax ? fmtMoney(totalMin) : fmtMoney(totalMin) + '–' + fmtMoney(totalMax); savingsRange.textContent = rangeStr; savingsWrap.style.display = ''; } else if (savingsWrap) { savingsWrap.style.display = 'none'; } } else { bar.classList.remove('ukwf-sticky-save-bar--visible'); if (savingsWrap) savingsWrap.style.display = 'none'; } }/* Update whenever a save/unsave happens */ window.addEventListener('ukwfSavedChanged', updateBar); /* Cross-tab sync */ window.addEventListener('storage', function(e) { if (e.key === SAVED_KEY) updateBar(); }); /* Expose globally */ window.ukwfStickyBarRefresh = updateBar; updateBar(); })();/* ── CART DRAWER ────────────────────────────────────────────────────── */ (function() { var SAVED_KEY = 'ukwf_saved_v2'; var drawer = document.getElementById('ukwf-cart-drawer'); var overlay = document.getElementById('ukwf-cart-overlay'); var itemsList = document.getElementById('ukwf-cart-items'); var emptyEl = document.getElementById('ukwf-cart-empty'); var footerEl = document.getElementById('ukwf-cart-footer'); var savingsStrip = document.getElementById('ukwf-cart-savings-strip'); var savingsAmount = document.getElementById('ukwf-cart-savings-amount'); var headerSub = document.getElementById('ukwf-cart-header-sub'); var footerCount = document.getElementById('ukwf-cart-footer-count'); if (!drawer) return;function getSaved() { try { return JSON.parse(localStorage.getItem(SAVED_KEY) || '[]'); } catch(e) { return []; } } function setSaved(arr) { localStorage.setItem(SAVED_KEY, JSON.stringify(arr)); window.dispatchEvent(new CustomEvent('ukwfSavedChanged')); if (typeof window.ukwfStickyBarRefresh === 'function') window.ukwfStickyBarRefresh(); if (typeof window.ukwfSavedBadgeRefresh === 'function') window.ukwfSavedBadgeRefresh(); } function parseSavings(str) { if (!str) return null; var nums = str.replace(/[^0-9]/g, ' ').trim().split(/\s+/).filter(Boolean); var vals = nums.map(function(n){ return parseInt(n,10); }).filter(function(n){ return !isNaN(n) && n > 0; }); if (!vals.length) return null; if (vals.length === 1) return { min: vals[0], max: vals[0] }; return { min: Math.min.apply(null,vals), max: Math.max.apply(null,vals) }; } function fmtMoney(n) { if (n >= 1000000) return '$' + (n/1000000).toFixed(1).replace(/\.0$/,'') + 'M'; if (n >= 1000) return '$' + Math.round(n/1000) + 'K'; return '$' + n.toLocaleString(); } function getCatIcon(cat) { var icons = { 'vehicle':'', 'home':'', 'travel':'', 'equipment':'', 'health':'', 'retirement':'', 'education':'', 'real estate':'' }; var k = (cat || '').toLowerCase(); for (var key in icons) { if (k.indexOf(key) !== -1) return icons[key]; } return ''; } function renderItems() { var saved = getSaved(); var n = saved.length; /* Update header sub */ if (headerSub) headerSub.textContent = n + ' deduction' + (n !== 1 ? 's' : '') + ' saved'; /* Show/hide empty state */ if (emptyEl) emptyEl.style.display = n === 0 ? '' : 'none'; if (footerEl) footerEl.style.display = n === 0 ? 'none' : ''; /* Savings strip */ var totalMin = 0, totalMax = 0, hasSavings = false; saved.forEach(function(item) { var p = parseSavings(item.savings || ''); if (p) { totalMin += p.min; totalMax += p.max; hasSavings = true; } }); if (hasSavings && savingsStrip) { savingsStrip.style.display = ''; var rangeStr = totalMin === totalMax ? fmtMoney(totalMin) : fmtMoney(totalMin) + ' – ' + fmtMoney(totalMax); if (savingsAmount) savingsAmount.textContent = rangeStr; } else if (savingsStrip) { savingsStrip.style.display = 'none'; } /* Footer count */ if (footerCount) footerCount.textContent = n > 0 ? n + ' write-off' + (n !== 1 ? 's' : '') + ' in your list' : ''; /* Remove existing items (keep empty state) */ var existing = itemsList ? itemsList.querySelectorAll('.ukwf-cart-item') : []; existing.forEach(function(el) { el.parentNode.removeChild(el); }); /* Render each item */ saved.forEach(function(item, idx) { var div = document.createElement('div'); div.className = 'ukwf-cart-item'; div.style.animationDelay = (idx * 0.04) + 's'; div.innerHTML = '
' + getCatIcon(item.category) + '
' + '
' + '
' + escHtml(item.name || item.slug) + '
' + (item.category ? '
' + escHtml(item.category) + '
' : '') + (item.savings ? '
' + escHtml(item.savings) + '/yr
' : '') + '
' + ''; /* Remove button handler */ div.querySelector('.ukwf-cart-item-remove').addEventListener('click', function() { var slug = this.getAttribute('data-slug'); var arr = getSaved().filter(function(i){ return i.slug !== slug; }); setSaved(arr); /* Animate out */ div.style.transition = 'opacity 0.18s, transform 0.18s'; div.style.opacity = '0'; div.style.transform = 'translateX(20px)'; setTimeout(function() { renderItems(); }, 180); /* Also update save buttons on page */ document.querySelectorAll('.ukwf-card-save-btn[data-slug="' + slug + '"]').forEach(function(btn) { btn.classList.remove('ukwf-card-save-btn--saved'); btn.setAttribute('aria-pressed','false'); var lbl = btn.querySelector('.ukwf-card-save-label'); if (lbl) lbl.textContent = 'Save'; }); }); if (itemsList) itemsList.appendChild(div); }); } function escHtml(s) { return String(s).replace(/&/g,'&').replace(//g,'>').replace(/"/g,'"'); } function escAttr(s) { return String(s).replace(/"/g,'"').replace(/'/g,'''); } /* Open / close */ window.ukwfCartDrawerOpen = function() { renderItems(); if (drawer) drawer.classList.add('ukwf-cart-drawer--open'); if (overlay) overlay.classList.add('ukwf-cart-overlay--open'); document.body.style.overflow = 'hidden'; }; window.ukwfCartDrawerClose = function() { if (drawer) drawer.classList.remove('ukwf-cart-drawer--open'); if (overlay) overlay.classList.remove('ukwf-cart-overlay--open'); document.body.style.overflow = ''; }; window.ukwfCartClearAll = function() { if (!confirm('Remove all saved write-offs?')) return; setSaved([]); renderItems(); }; /* Keyboard close */ document.addEventListener('keydown', function(e) { if (e.key === 'Escape' && drawer && drawer.classList.contains('ukwf-cart-drawer--open')) { window.ukwfCartDrawerClose(); } }); /* Re-render when saves change */ window.addEventListener('ukwfSavedChanged', function() { if (drawer && drawer.classList.contains('ukwf-cart-drawer--open')) { renderItems(); } }); window.addEventListener('storage', function(e) { if (e.key === SAVED_KEY && drawer && drawer.classList.contains('ukwf-cart-drawer--open')) { renderItems(); } }); })();/* ── CARD SAVE BUTTONS ──────────────────────────────────────────────── */ (function() { var SAVED_KEY = 'ukwf_saved_v2';function getSaved() { try { return JSON.parse(localStorage.getItem(SAVED_KEY) || '[]'); } catch(e) { return []; } } function setSaved(arr) { localStorage.setItem(SAVED_KEY, JSON.stringify(arr)); } function isSaved(slug) { return getSaved().some(function(i) { return i.slug === slug; }); } function updateBtn(btn) { var slug = btn.getAttribute('data-slug'); var saved = isSaved(slug); btn.classList.toggle('ukwf-card-save-btn--saved', saved); btn.setAttribute('aria-pressed', saved ? 'true' : 'false'); var label = btn.querySelector('.ukwf-card-save-label'); if (label) label.textContent = saved ? 'Saved' : 'Save'; } function initAllBtns() { document.querySelectorAll('.ukwf-card-save-btn').forEach(function(btn) { updateBtn(btn); btn.addEventListener('click', function(e) { e.stopPropagation(); var slug = btn.getAttribute('data-slug'); var name = btn.getAttribute('data-name'); var cat = btn.getAttribute('data-category') || ''; var savings = btn.getAttribute('data-savings') || ''; var saved = getSaved(); var idx = saved.findIndex(function(i) { return i.slug === slug; }); if (idx === -1) { saved.push({ slug: slug, name: name, category: cat, savings: savings, savedAt: Date.now() }); } else { saved.splice(idx, 1); } setSaved(saved); updateBtn(btn); /* Sync badge and sticky bar */ window.dispatchEvent(new CustomEvent('ukwfSavedChanged')); if (typeof window.ukwfSavedBadgeRefresh === 'function') window.ukwfSavedBadgeRefresh(); if (typeof window.ukwfStickyBarRefresh === 'function') window.ukwfStickyBarRefresh(); }); }); } /* Init on load and re-sync on saved changes from autocomplete */ if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', initAllBtns); } else { initAllBtns(); } window.addEventListener('ukwfSavedChanged', function() { document.querySelectorAll('.ukwf-card-save-btn').forEach(updateBtn); }); })();