How LLC Owners Save on Taxes in 2026

Freelancer / 1099 Find more write-offs — search your profession or a specific deduction
Try:
Others Also Use These Strategies
Business IRC §199A 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.

MERNA Strategy Notes

The OBBBA (July 4, 2025) permanently extended and increased the QBI deduction from 20% to 23% starting in 2026. W-2 wage and property limitations still apply above income thresholds. Restructuring into an S-Corp can maximize the W-2 wage limitation.

Common Mistake: Specified service businesses (law, health, consulting) phase out above income thresholds.
UNK Client Win Small Business Owner / Sole Proprietor

How a Denver Plumber Claimed a $36,000 QBI Deduction He Didn't Know Existed

A UNK client ran a plumbing business generating $180,000 in net income. His previous tax preparer had never mentioned the QBI deduction. Uncle Kam identified that he qualified for the full 23% deduction under the OBBBA — $41,400 off his taxable income. At his 22% marginal rate, this saved $9,108 in federal taxes. The deduction is now permanent, so the client is working with Uncle Kam to stack it with retirement contributions and S-Corp election for maximum benefit.

Result: $9,108 in annual federal tax savings through a deduction the client had been missing for years.

Own a pass-through business? The QBI deduction is now 23% and permanent. Book a call to confirm you're capturing the full amount.

Be the Next Win — Book a Call
Common Questions About Qualified Business Income (QBI) Deduction
Business IRC §280A

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.

MERNA Strategy Notes

Actual expense method typically beats the simplified $5/sq ft method. S-Corp owners should use an accountable plan reimbursement instead of the home office deduction.

Common Mistake: W-2 employees cannot claim home office deductions under current tax law.
UNK Client Win Remote Worker / Freelancer

How a Remote Marketing Director Turned Her Spare Bedroom Into a $4,800 Annual Deduction

A UNK client worked fully remote as a freelance marketing director from a dedicated home office in her 1,800 sq ft Atlanta home. Her office was 180 sq ft — 10% of the home. Uncle Kam helped her calculate the actual expense method: $18,000 in rent × 10% = $1,800 in rent deduction, plus 10% of utilities ($480), internet ($180), and renter's insurance ($60). Total deduction: $2,520/year. After switching to a larger office space (240 sq ft = 13.3%), the deduction grew to $3,360. Combined with the simplified method comparison, the actual expense method won by $840/year.

Result: $3,360/year in home office deductions — $840 more per year than the simplified method. The client also deducted her desk, monitor, and office chair as equipment.

Work from home? You may be leaving thousands in home office deductions on the table. Book a call to calculate your exact deduction.

Be the Next Win — Book a Call
Common Questions About Home Office Deduction
Business IRC §162 Uncle Kam Clients Only

Business Travel Deduction

Deduct ordinary and necessary travel expenses when traveling away from home for business, including transportation, lodging, and 50% of meals.

Eligibility Requirements
  • Travel away from your tax home for business
  • Travel requires sleep or rest (overnight trip)
  • Primary purpose of the trip is business
Example Savings Scenario

A business owner spending $15,000/year on travel (flights, hotels, meals) deducts $13,500 (meals at 50%), saving $4,995 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 §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
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
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
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
Business Structure IRC §1362, §11 Uncle Kam Clients Only

LLC Tax Election Strategy (S-Corp vs. C-Corp vs. Sole Prop)

LLCs are tax-neutral entities — the tax election determines how income is taxed. S-Corp election saves self-employment taxes; C-Corp election enables retained earnings at 21% rate.

Eligibility Requirements
  • Own an LLC
  • Net profit over $40,000/year for S-Corp consideration
  • Net profit over $100,000/year for C-Corp consideration
Example Savings Scenario

An LLC earning $200,000 net profit: default taxation costs $28,240 in SE tax. S-Corp election with $80,000 salary saves $12,000+/year in SE 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
Business IRC §199A Uncle Kam Clients Only

QBI Deduction — Section 199A (20% Pass-Through Deduction)

Pass-through business owners (sole props, S-Corps, LLCs, partnerships) can deduct up to 20% of qualified business income from taxable income. This is one of the largest tax breaks available to small business owners.

Eligibility Requirements
  • Own a pass-through business
  • Taxable income under $197,300 (single) or $394,600 (married) for full deduction
  • Specified service businesses (law, consulting, finance) phase out above these thresholds
Example Savings Scenario

A business owner with $200,000 in QBI at a 24% rate: 20% deduction = $40,000 reduction in taxable income = $9,600 in tax savings.

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

Cell Phone & Mobile Device Deduction

If you use your cell phone for business, you can deduct the business-use percentage of your monthly bill, data plan, and the cost of the device itself. For most self-employed professionals, this is 80–100% of the total cost.

Eligibility Requirements
  • Self-employed, freelancer, or business owner
  • Phone used for business calls, emails, or apps
  • Keep records of business vs personal use percentage
Example Savings Scenario

A freelancer paying $120/month for their phone and using it 90% for business deducts $1,296/year, saving $389–$518 depending on tax bracket.

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

Internet & Broadband Deduction

Your home internet bill is deductible to the extent it is used for business. For most self-employed professionals who work from home, this is 50–100% of the monthly cost. A dedicated business internet line is 100% deductible.

Eligibility Requirements
  • Self-employed, freelancer, or business owner
  • Internet used for business purposes
  • Allocate business vs personal use if mixed
Example Savings Scenario

A self-employed consultant paying $80/month for internet and using it 80% for business deducts $768/year, saving $230–$307 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
Business Expenses IRC §162 Uncle Kam Clients Only

Office Supplies & Materials Deduction

Any supplies you purchase and use in your business are fully deductible in the year purchased. This includes paper, pens, printer ink and toner, folders, binders, postage, envelopes, labels, staples, tape, and any other consumable materials used in your work.

Eligibility Requirements
  • Self-employed, freelancer, or business owner
  • Supplies used for business purposes
  • Consumed or used up within the tax year
Example Savings Scenario

A small business owner spending $1,200/year on office supplies saves $360–$480 in taxes depending on their bracket.

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

Professional Licenses & Certifications Deduction

If you are required to hold a professional license to practice your trade, the cost of obtaining and renewing that license is fully deductible as a business expense. This includes state bar fees for attorneys, medical license renewals, nursing licenses, contractor licenses, real estate licenses, CPA licenses, and any other required professional credentials.

Eligibility Requirements
  • License required to practice your profession
  • Self-employed or business owner (W-2 employees cannot deduct unreimbursed costs)
  • Renewal fees qualify each year they are paid
Example Savings Scenario

A physician paying $2,500/year in state medical license fees, DEA registration, and board certification renewals saves $750–$1,000 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
Business Expenses IRC §162 Uncle Kam Clients Only

Continuing Education & CE Credits Deduction

Continuing education required to maintain your professional license or improve skills in your current trade is fully deductible. This includes CME credits for physicians, CLE credits for attorneys, CPE credits for CPAs, CE credits for nurses, real estate CE, and any other mandatory or voluntary professional development directly related to your current work.

Eligibility Requirements
  • Education maintains or improves skills in your current profession
  • Does not qualify you for a new career or profession
  • Self-employed or business owner
Example Savings Scenario

A CPA spending $3,000/year on CPE courses, webinars, and AICPA membership saves $900–$1,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
Business Expenses IRC §162 Uncle Kam Clients Only

Software & Subscription Deduction

Any software subscription or SaaS tool you pay for and use in your business is fully deductible in the year paid. This includes accounting software (QuickBooks, FreshBooks), design tools (Adobe Creative Cloud, Figma, Canva), communication tools (Zoom, Slack, Microsoft 365), project management tools (Asana, Monday.com), and any other business application.

Eligibility Requirements
  • Software used for business purposes
  • Self-employed, freelancer, or business owner
  • Annual or monthly subscription fees qualify
Example Savings Scenario

A freelance designer paying $600/year for Adobe Creative Cloud, $150 for Figma, and $200 for project management tools deducts $950/year, saving $285–$380.

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

Bank Fees, Merchant Fees & Payment Processing Deduction

All fees associated with your business bank account and payment processing are fully deductible. This includes monthly account maintenance fees, wire transfer fees, Stripe processing fees (typically 2.9% + 30¢), PayPal fees, Square fees, and any other merchant processing costs. For businesses processing significant revenue, these fees add up to thousands per year.

Eligibility Requirements
  • Business bank account or merchant account
  • Fees directly related to business transactions
  • Self-employed, freelancer, or business owner
Example Savings Scenario

An ecommerce seller processing $200,000/year through Stripe pays approximately $5,830 in fees — fully deductible, saving $1,749–$2,332 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
Business Expenses IRC §162 Uncle Kam Clients Only

Advertising & Marketing Deduction

All costs of advertising and promoting your business are fully deductible. This includes Google Ads, Facebook and Instagram ads, business cards, flyers, brochures, signage, website design and hosting, domain names, email marketing tools (Mailchimp, Klaviyo), and any other promotional expenses.

Eligibility Requirements
  • Advertising directly promotes your business
  • Self-employed, freelancer, or business owner
  • Expenses paid in the tax year
Example Savings Scenario

A real estate agent spending $8,000/year on Facebook ads, business cards, and listing photography deducts the full amount, saving $2,400–$3,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
Business Expenses IRC §162 Uncle Kam Clients Only

Booth Rental & Chair Rental Deduction

If you rent a booth, chair, or suite in a salon or barbershop, your rental fees are fully deductible as a business expense. This is typically the largest deduction for booth renters — most pay $200–$600/week in booth rent, adding up to $10,400–$31,200/year in fully deductible expenses.

Eligibility Requirements
  • Rent a booth, chair, or suite in a salon or barbershop
  • Self-employed (booth renters are independent contractors, not employees)
  • Weekly or monthly rental fees paid to the salon owner
Example Savings Scenario

A hair stylist paying $350/week in booth rent deducts $18,200/year, saving $5,460–$7,280 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
Business Expenses IRC §162 Uncle Kam Clients Only

Fitness Equipment, Certifications & Supplies Deduction

Personal trainers and fitness professionals can deduct the cost of equipment and supplies used in their business. This includes resistance bands, foam rollers, kettlebells, dumbbells, mats, stopwatches, heart rate monitors, fitness apps, and any other tools used with clients. Certification renewal fees (NASM, ACE, NSCA, ACSM) and continuing education are also fully deductible.

Eligibility Requirements
  • Equipment and supplies used with clients or in your fitness business
  • Self-employed personal trainer or fitness professional
  • Certification renewal fees for your current profession
Example Savings Scenario

A personal trainer spending $2,500/year on equipment, certification renewals, and liability insurance deducts the full amount, saving $750–$1,000.

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 §179 Uncle Kam Clients Only

Camera Gear & Production Equipment Deduction

Photographers, videographers, and content creators can deduct the full cost of cameras, lenses, tripods, lighting equipment, microphones, audio recorders, drones, gimbals, memory cards, hard drives, and any other production equipment used in their business. Under Section 179, the full cost can be expensed in Year 1 instead of depreciated over 5 years.

Eligibility Requirements
  • Equipment used for business photography, video, or content creation
  • Self-employed photographer, videographer, or content creator
  • Business use percentage must be documented for mixed-use equipment
Example Savings Scenario

A photographer purchasing a $3,500 camera body and $1,200 in lenses expenses the full $4,700 under Section 179, saving $1,410–$1,880 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
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
Business Expenses IRC §162 / IRC §179 Uncle Kam Clients Only

Computer, Laptop & Hardware Deduction

Computers, laptops, tablets, monitors, keyboards, mice, external hard drives, and other hardware used in your business are fully deductible. Under Section 179, you can expense the full cost in Year 1 instead of depreciating over 5 years. For mixed business/personal use, only the business-use percentage is deductible.

Eligibility Requirements
  • Computer or hardware used for business purposes
  • Self-employed, freelancer, or business owner
  • Business-use percentage documented for mixed-use devices
Example Savings Scenario

A freelance software engineer purchasing a $2,500 laptop used 95% for work expenses $2,375 under Section 179, saving $713–$950 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
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
Business Expenses IRC §162 Uncle Kam Clients Only

Accounting, Bookkeeping & Tax Preparation Fees Deduction

The cost of accounting, bookkeeping, and tax preparation for your business is fully deductible. This includes CPA fees for tax preparation and planning, bookkeeper fees, payroll service costs (Gusto, ADP, Paychex), accounting software (QuickBooks, Xero), and any other professional fees related to managing your business finances.

Eligibility Requirements
  • Self-employed, freelancer, or business owner
  • Fees related to your business finances and taxes
  • Paid in the tax year
Example Savings Scenario

A self-employed consultant paying $3,500/year for CPA services, bookkeeping, and QuickBooks deducts the full amount, saving $1,050–$1,400 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
Uber/Rideshare Driver IRC §164(f) Uncle Kam Clients Only

Self-Employment Tax Deduction for Rideshare Drivers

As an Uber or Lyft driver, you pay both the employee and employer portions of Social Security and Medicare (15.3% total). The IRS allows you to deduct 50% of your self-employment tax from your gross income. This is an above-the-line deduction.

Eligibility Requirements
  • Earn income as a self-employed rideshare driver
  • File Schedule C and Schedule SE
  • Net self-employment income of $400 or more
  • No employer paying the other half of FICA on your behalf
Example Savings Scenario

A rideshare driver with $40,000 in net earnings pays $5,652 in SE tax and deducts $2,826, saving $1,046 in income 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
Self-Employment IRC §164(f) Uncle Kam Clients Only

DoorDash Driver Self-Employment Tax & Quarterly Payment Strategy

DoorDash drivers pay self-employment tax (15.3%) on net earnings and can deduct 50% of SE tax on their personal return — worth $1,500–$3,000 per year for a full-time driver. Also deduct the QBI deduction (20% of net income) if income is below the threshold. Pay quarterly estimated taxes to avoid underpayment penalties — use the 1040-ES worksheet.

Eligibility Requirements
  • Must have net delivery income of $400 or more
  • Must file Schedule SE with your tax return
  • Quarterly estimated taxes due if you expect to owe $1,000 or more
  • Deduction is taken on Form 1040, not Schedule C
Example Savings Scenario

A DoorDash driver with $35,000 net profit pays $4,945 in SE tax and deducts $2,473 (50% of SE tax) on Form 1040, saving $915 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 IRC §199A Uncle Kam Clients Only

LLC Owner QBI Deduction (20% Pass-Through Deduction)

LLC owners who are pass-through entities can deduct up to 20% of qualified business income (QBI) under Section 199A — worth $10,000–$40,000 per year for profitable LLCs. The deduction phases out for specified service businesses above income thresholds. LLC owners with W-2 employees or significant property can maximize the deduction above the threshold using wage and property limitations.

Eligibility Requirements
  • Must have qualified business income from a pass-through entity (LLC, sole prop, S-Corp, partnership)
  • Deduction is 20% of qualified business income (QBI)
  • Income limits apply: $191,950 (single) or $383,900 (married) in 2024
  • Specified service trades (law, accounting, health, financial services) have additional limits
Example Savings Scenario

An LLC owner with $100,000 in QBI deducts $20,000 (20% of $100,000) on Form 1040, saving $7,400 at 37% - without any additional spending required.

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

Freelancer Home Office Deduction

Freelancers working from home can deduct the home office space used exclusively and regularly for business. The simplified method allows $5 per square foot (max 300 sq ft = $1,500 deduction). The actual expense method — deducting a percentage of rent, utilities, insurance, and internet — typically yields $3,000–$8,000 per year for most freelancers.

Eligibility Requirements
  • Must be a self-employed freelancer or independent contractor
  • Must use a dedicated space in your home exclusively and regularly for freelance work
  • Space must be your principal place of business
  • Must report income on Schedule C
Example Savings Scenario

A freelancer using 12% of their home for work deducts $2,400/year in home office expenses, saving $888 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
Retirement IRC §408(k) Uncle Kam Clients Only

Freelancer SEP-IRA & Solo 401k Retirement Deduction

Freelancers can contribute up to 25% of net self-employment income to a SEP-IRA (max $70,000 in 2026) and deduct the full contribution above the line. A freelancer earning $100,000 in net SE income can contribute and deduct $18,587 to a SEP-IRA, saving $6,877 in taxes at 37%. Solo 401k allows higher contributions ($23,500 employee + 25% employer) for freelancers with no employees.

Eligibility Requirements
  • Must have self-employment income
  • SEP-IRA: contribute up to 25% of net SE income (max $69,000 in 2024)
  • Solo 401k: contribute up to $69,000 in 2024 ($76,500 if age 50+)
  • Must open and fund by tax filing deadline (including extensions)
Example Savings Scenario

A freelancer earning $100,000 contributes $18,587 to a SEP-IRA (25% of net SE income), saving $6,877 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
Self-Employment IRC §162 Uncle Kam Clients Only

New 1099 Worker Starter Tax Deduction Checklist

New 1099 workers can deduct all startup costs in their first year: business registration fees, initial equipment purchases, website setup, business cards, and professional services. The IRS allows up to $5,000 in startup costs to be deducted in the first year (remainder amortized over 15 years). Also immediately deduct home office, vehicle mileage, phone, and internet from day one.

Eligibility Requirements
  • Must have received a 1099-NEC or 1099-K for self-employment income
  • Must file Schedule C to report self-employment income and expenses
  • All ordinary and necessary business expenses are deductible
  • Must have documentation for all expenses
Example Savings Scenario

A new 1099 worker with $50,000 in income deducting $12,000 in home office, equipment, phone, and professional fees reduces taxable income by $12,000, saving $4,440 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
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
Home Health Care Business IRC §1361, §3111 Uncle Kam Clients Only

S-Corp Election for Home Health Care Business Owners

Home health care business owners operating as a sole proprietor or single-member LLC pay self-employment tax (15.3%) on 100% of net profit. By electing S-Corp status, the owner pays themselves a reasonable salary (subject to payroll taxes) and takes the remaining profit as distributions — which are NOT subject to self-employment tax. For a home care agency generating $200,000 in net profit, an S-Corp election typically saves $12,000–$20,000 per year in SE taxes alone.

Eligibility Requirements
  • Home health care business generating $40,000+ in net profit
  • Owner actively works in the business
  • Willing to run payroll and pay a reasonable salary
  • Entity structured as LLC or corporation
Example Savings Scenario

A home health care owner with $180,000 net profit pays a $75,000 reasonable salary and takes $105,000 as distributions, saving approximately $16,065 in self-employment taxes annually.

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 §1361, §3111 Uncle Kam Clients Only

S-Corp Election for Therapists in Private Practice

Therapists operating as sole proprietors or single-member LLCs pay self-employment tax (15.3%) on 100% of net profit. By electing S-Corp status, the therapist pays themselves a reasonable salary (subject to payroll taxes) and takes remaining profit as distributions — which are NOT subject to self-employment tax. For a therapist generating $120,000 in net profit, an S-Corp election typically saves $8,000–$15,000 per year in SE taxes alone.

Eligibility Requirements
  • Net self-employment income of $50,000+ per year
  • Therapist actively works in the practice
  • Willing to run payroll and pay a reasonable salary
  • Entity structured as LLC or corporation
Example Savings Scenario

A therapist with $120,000 net profit pays a $60,000 reasonable salary and takes $60,000 as distributions, saving approximately $9,180 in self-employment taxes annually.

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
What Most Freelancer / 1099s Don't Know

The QBI deduction gives freelancers a 23% discount on all net business income starting 2026 — most miss it.

A Solo 401(k) can shelter up to ~$70,000/year from taxes in 2026 — far more than a traditional IRA.

Vehicle deductions require a mileage log — without it, the IRS will disallow the entire deduction.

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 Freelancer / 1099s

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

What tax deductions can a freelancer claim?
Freelancers can deduct home office, computer and equipment, software subscriptions, internet, phone (business %), health insurance premiums, retirement contributions, professional development, and business travel. Most freelancers miss $8,000\u2013$25,000 in deductions.
How much should a freelancer set aside for taxes?
Freelancers should set aside 25\u201330% of net income for taxes (federal + state + self-employment). Self-employment tax alone is 15.3% on the first $168,600 of net income in 2026. Quarterly estimated payments are required.
Should a freelancer form an LLC or S-Corp?
An LLC provides liability protection with no tax benefit by itself. An S-Corp election saves freelancers earning $60,000+ approximately $5,000\u2013$15,000/year in self-employment taxes by splitting income between salary and distributions.
Can a freelancer deduct health insurance premiums?
Yes \u2014 self-employed freelancers can deduct 100% of health insurance premiums (for themselves, spouse, and dependents) as an above-the-line deduction, reducing adjusted gross income even without itemizing.
What retirement account should a freelancer use?
A Solo 401(k) allows freelancers to contribute up to $70,000/year ($77,500 if 50+). A SEP-IRA allows contributions of up to 20% of net self-employment income (max $70,000). Both reduce taxable income dollar-for-dollar.
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 $8,000–$45,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); }); })();