clearmargin-tax-engine 0.0.0-stage → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 ClearMargin (https://clearmargincalc.com) / JulyWhisky0
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,140 @@
1
- # Temporary Holding Version
1
+ # ClearMargin 2026 US 1099 Tax & Platform Fee Engine
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ [![Verify 2026 Tax & Fee Engine](https://github.com/JulyWhisky0/clearmargin-tax-engine/actions/workflows/ci.yml/badge.svg)](https://github.com/JulyWhisky0/clearmargin-tax-engine/actions/workflows/ci.yml)
4
+ [![npm version](https://img.shields.io/npm/v/clearmargin-tax-engine.svg)](https://www.npmjs.com/package/clearmargin-tax-engine)
5
+ [![License: MIT](https://img.shields.io/badge/License-MIT-emerald.svg)](./LICENSE)
6
+ [![Node](https://img.shields.io/badge/Node-%3E%3D20-blue.svg)](https://nodejs.org)
7
+
8
+ Audited, zero-dependency TypeScript calculation engine and 2026 statutory datasets powering **[ClearMargin](https://clearmargincalc.com)**.
9
+
10
+ This open-source package exposes the deterministic mathematical rules behind:
11
+ - **2026 IRS Schedule SE & Federal Income Tax Engine** (92.35% SE taxable earnings factor, 12.4% Social Security up to the $184,500 2026 wage cap, 2.9% + 0.9% Medicare, 50% SE deduction, Section 199A 20% QBI deduction, and progressive Single / MFJ / HOH brackets)
12
+ - **All 50 US States + District of Columbia (51 Jurisdictions)** with progressive brackets, flat rates, no-tax states, state standard deductions/exemptions, and federal-taxable-income conformity logic
13
+ - **Freelance Hourly Rate & W-2 vs 1099 Equivalency Solvers**
14
+ - **Gig Economy & Creator 1099 Engine (7 Verticals)** modeling the **2026 IRS split business mileage rates ($0.725/mile Jan–Jun & $0.76/mile Jul–Dec under IRS Announcement 2026-11)**
15
+ - **23 Marketplace, SaaS & Payment Processor Fee Engines + Exact Reverse-Pricing Solvers** (handling discontinuous tiers such as Poshmark’s flat $2.95 cliff below $15 and Stripe ACH’s $5.00 cap)
16
+
17
+ ---
18
+
19
+ ## Try the Interactive Web Calculators
20
+
21
+ - **[All 51 State 1099 Tax Calculators](https://clearmargincalc.com/calculators/1099-tax/)**
22
+ - **[23 Platform Fee & Reverse-Pricing Calculators](https://clearmargincalc.com/calculators/platform-fees/)**
23
+ - **[30 State-vs-State Tax Relocation Comparisons](https://clearmargincalc.com/calculators/compare/)**
24
+ - **[Gig Economy & Creator 1099 Calculators](https://clearmargincalc.com/calculators/gig-tax/)** (Uber, DoorDash, Instacart, Amazon Flex, Lyft, YouTube, OnlyFans)
25
+ - **[Free Embeddable Widgets](https://clearmargincalc.com/embed/1099-tax/)** (iframe-ready for blogs and newsletters)
26
+
27
+ ---
28
+
29
+ ## Installation
30
+
31
+ ```bash
32
+ npm install clearmargin-tax-engine
33
+ ```
34
+
35
+ Zero runtime dependencies. Full TypeScript declarations (`dist/index.d.ts`) and ESM exports included.
36
+
37
+ ---
38
+
39
+ ## Quick Start
40
+
41
+ ### 1. Calculate 2026 1099 Taxes (Federal + State + Quarterly)
42
+
43
+ ```ts
44
+ import { calculateFederalAndState1099 } from 'clearmargin-tax-engine';
45
+
46
+ const result = calculateFederalAndState1099({
47
+ grossRevenue: 120000,
48
+ businessExpenses: 12000,
49
+ stateSlug: 'california',
50
+ filingStatus: 'single',
51
+ applyQbiDeduction: true,
52
+ });
53
+
54
+ console.log({
55
+ netProfit: result.netProfit,
56
+ totalSeTax: result.totalSeTax,
57
+ federalIncomeTax: result.federalIncomeTax,
58
+ stateIncomeTax: result.stateIncomeTax,
59
+ netTakeHome: result.netTakeHome,
60
+ quarterlyEstimatedTax: result.quarterlyEstimatedTax,
61
+ });
62
+ ```
63
+
64
+ ### 2. Reverse-Solve Required Marketplace Listing Price
65
+
66
+ ```ts
67
+ import { PLATFORM_MAP, solveRequiredListingPrice } from 'clearmargin-tax-engine';
68
+
69
+ const etsy = PLATFORM_MAP['etsy'];
70
+ const quote = solveRequiredListingPrice(etsy, 45.0, {
71
+ cogs: 12,
72
+ sellerShippingCost: 4.5,
73
+ addonIds: ['offsite-ads-15'],
74
+ });
75
+
76
+ console.log({
77
+ requiredListingPrice: quote.requiredSalePrice,
78
+ totalPlatformFees: quote.breakdown.totalPlatformFees,
79
+ netProfit: quote.breakdown.netProfit,
80
+ });
81
+ ```
82
+
83
+ ### 3. Gig Economy Mileage & Net Hourly Pay
84
+
85
+ ```ts
86
+ import { calculateGigTax } from 'clearmargin-tax-engine';
87
+
88
+ const uber = calculateGigTax({
89
+ grossRevenue: 52000,
90
+ platformFeePct: 0,
91
+ supportsMileage: true,
92
+ milesDriven: 28000,
93
+ milesH1: 14000, // Jan 1 – Jun 30, 2026 @ $0.725/mi (IRS Notice 2026-10)
94
+ milesH2: 14000, // Jul 1 – Dec 31, 2026 @ $0.76/mi (IRS Announcement 2026-11)
95
+ otherExpenses: 2400,
96
+ hoursPerWeek: 35,
97
+ stateSlug: 'texas',
98
+ filingStatus: 'single',
99
+ applyQbiDeduction: true,
100
+ });
101
+
102
+ console.log({
103
+ mileageDeduction: uber.mileageDeduction,
104
+ taxSavedByDeductions: uber.deductionTaxSavings,
105
+ effectiveHourlyAfterTax: uber.effectiveHourlyAfterTax,
106
+ });
107
+ ```
108
+
109
+ ---
110
+
111
+ ## Local Development
112
+
113
+ ```bash
114
+ npm install
115
+ npm test
116
+ ```
117
+
118
+ ---
119
+
120
+ ## Primary Sources & Methodology
121
+
122
+ Every tax bracket, wage cap, mileage rate, and marketplace fee schedule traces directly to primary regulatory or platform documentation. Full methodology and per-platform links are documented in [`src/data/officialSources.ts`](./src/data/officialSources.ts) and on **[ClearMargin Methodology](https://clearmargincalc.com/methodology/#sources)**:
123
+
124
+ | Rule Set | Authoritative Source |
125
+ | :--- | :--- |
126
+ | Self-Employment Tax (Schedule SE) | [IRS Schedule SE (Form 1040)](https://www.irs.gov/forms-pubs/about-schedule-se-form-1040) |
127
+ | Estimated Quarterly Payments | [IRS Form 1040-ES](https://www.irs.gov/forms-pubs/about-form-1040-es) |
128
+ | 2026 Business Mileage Rate | [IRS Standard Mileage Rates](https://www.irs.gov/tax-professionals/standard-mileage-rates) |
129
+ | QBI Deduction (Section 199A) | [IRS QBI Overview](https://www.irs.gov/newsroom/qualified-business-income-deduction) |
130
+ | Social Security Wage Cap | [SSA Contribution & Benefit Base](https://www.ssa.gov/oact/cola/cbb.html) |
131
+
132
+ ---
133
+
134
+ ## Disclaimer
135
+
136
+ This software and its datasets are provided for **informational and financial planning estimation purposes only**. They do not constitute tax, legal, or CPA advice. Final liabilities are always governed by official IRS/state tax forms and official marketplace settlement statements. See the full [ClearMargin Disclaimer](https://clearmargincalc.com/disclaimer/).
137
+
138
+ ## License
139
+
140
+ [MIT](./LICENSE)
@@ -0,0 +1,23 @@
1
+ export type FilingStatus = 'single' | 'mfj' | 'hoh';
2
+ export interface TaxBracket {
3
+ upTo: number | null;
4
+ rate: number;
5
+ }
6
+ export declare const FILING_STATUS_LABELS: Record<FilingStatus, string>;
7
+ export declare const FEDERAL_STANDARD_DEDUCTION_2026: Record<FilingStatus, number>;
8
+ export declare const FEDERAL_BRACKETS_2026: Record<FilingStatus, TaxBracket[]>;
9
+ export declare const SE_TAX_CONSTANTS_2026: {
10
+ netEarningsFactor: number;
11
+ socialSecurityRate: number;
12
+ socialSecurityWageCap: number;
13
+ medicareRate: number;
14
+ additionalMedicareRate: number;
15
+ additionalMedicareThreshold: Record<FilingStatus, number>;
16
+ employerFicaRate: number;
17
+ };
18
+ export declare const QUARTERLY_DEADLINES_2026: {
19
+ quarter: string;
20
+ period: string;
21
+ dueDate: string;
22
+ note: string;
23
+ }[];
@@ -0,0 +1,58 @@
1
+ export const FILING_STATUS_LABELS = {
2
+ single: 'Single',
3
+ mfj: 'Married Filing Jointly',
4
+ hoh: 'Head of Household',
5
+ };
6
+ export const FEDERAL_STANDARD_DEDUCTION_2026 = {
7
+ single: 16100,
8
+ mfj: 32200,
9
+ hoh: 24150,
10
+ };
11
+ export const FEDERAL_BRACKETS_2026 = {
12
+ single: [
13
+ { upTo: 12400, rate: 0.10 },
14
+ { upTo: 50400, rate: 0.12 },
15
+ { upTo: 105700, rate: 0.22 },
16
+ { upTo: 201775, rate: 0.24 },
17
+ { upTo: 256225, rate: 0.32 },
18
+ { upTo: 640600, rate: 0.35 },
19
+ { upTo: null, rate: 0.37 },
20
+ ],
21
+ mfj: [
22
+ { upTo: 24800, rate: 0.10 },
23
+ { upTo: 100800, rate: 0.12 },
24
+ { upTo: 211400, rate: 0.22 },
25
+ { upTo: 403550, rate: 0.24 },
26
+ { upTo: 512450, rate: 0.32 },
27
+ { upTo: 768700, rate: 0.35 },
28
+ { upTo: null, rate: 0.37 },
29
+ ],
30
+ hoh: [
31
+ { upTo: 17700, rate: 0.10 },
32
+ { upTo: 67450, rate: 0.12 },
33
+ { upTo: 105700, rate: 0.22 },
34
+ { upTo: 201750, rate: 0.24 },
35
+ { upTo: 256200, rate: 0.32 },
36
+ { upTo: 640600, rate: 0.35 },
37
+ { upTo: null, rate: 0.37 },
38
+ ],
39
+ };
40
+ export const SE_TAX_CONSTANTS_2026 = {
41
+ netEarningsFactor: 0.9235,
42
+ socialSecurityRate: 0.124,
43
+ socialSecurityWageCap: 184500,
44
+ medicareRate: 0.029,
45
+ additionalMedicareRate: 0.009,
46
+ additionalMedicareThreshold: {
47
+ single: 200000,
48
+ mfj: 250000,
49
+ hoh: 200000,
50
+ },
51
+ employerFicaRate: 0.0765,
52
+ };
53
+ export const QUARTERLY_DEADLINES_2026 = [
54
+ { quarter: 'Q1 2026', period: 'Jan 1 – Mar 31, 2026', dueDate: 'April 15, 2026', note: 'First federal & state estimated installment.' },
55
+ { quarter: 'Q2 2026', period: 'Apr 1 – May 31, 2026', dueDate: 'June 15, 2026', note: 'Covers a 2-month income window before summer.' },
56
+ { quarter: 'Q3 2026', period: 'Jun 1 – Aug 31, 2026', dueDate: 'September 15, 2026', note: 'Third quarterly installment for 1099 contractors.' },
57
+ { quarter: 'Q4 2026', period: 'Sep 1 – Dec 31, 2026', dueDate: 'January 15, 2027', note: 'Final 2026 estimated installment (or file & pay by Feb 1).' },
58
+ ];
@@ -0,0 +1,33 @@
1
+ /** IRS Notice 2026-10: Jan 1 – Jun 30, 2026 business standard mileage rate ($0.725/mile) */
2
+ export declare const IRS_2026_MILEAGE_RATE_H1 = 0.725;
3
+ /** IRS Announcement 2026-11: Jul 1 – Dec 31, 2026 mid-year business standard mileage rate ($0.76/mile) */
4
+ export declare const IRS_2026_MILEAGE_RATE_H2 = 0.76;
5
+ /** Equal 50/50 full-year blended reference rate ($0.7425/mile) when annual miles are split evenly across H1 & H2 */
6
+ export declare const IRS_2026_MILEAGE_RATE_BLENDED: number;
7
+ /** Active H2 2026 IRS business standard mileage rate (effective July 1, 2026) */
8
+ export declare const IRS_2026_MILEAGE_RATE = 0.76;
9
+ export interface GigFaq {
10
+ q: string;
11
+ a: string;
12
+ }
13
+ export interface GigPlatformProfile {
14
+ slug: string;
15
+ name: string;
16
+ roleLabel: string;
17
+ tagline: string;
18
+ supportsMileage: boolean;
19
+ defaultGrossRevenue: number;
20
+ defaultMiles: number;
21
+ defaultOtherExpenses: number;
22
+ defaultHoursPerWeek: number;
23
+ defaultPlatformFeePct: number;
24
+ defaultStateSlug: string;
25
+ taxFormLabel: string;
26
+ platformFeeNote: string;
27
+ commonDeductions: string[];
28
+ tips: string[];
29
+ rivals: string[];
30
+ faqs: GigFaq[];
31
+ }
32
+ export declare const GIG_PLATFORMS: GigPlatformProfile[];
33
+ export declare const GIG_PLATFORM_MAP: Record<string, GigPlatformProfile>;
@@ -0,0 +1,340 @@
1
+ /** IRS Notice 2026-10: Jan 1 – Jun 30, 2026 business standard mileage rate ($0.725/mile) */
2
+ export const IRS_2026_MILEAGE_RATE_H1 = 0.725;
3
+ /** IRS Announcement 2026-11: Jul 1 – Dec 31, 2026 mid-year business standard mileage rate ($0.76/mile) */
4
+ export const IRS_2026_MILEAGE_RATE_H2 = 0.76;
5
+ /** Equal 50/50 full-year blended reference rate ($0.7425/mile) when annual miles are split evenly across H1 & H2 */
6
+ export const IRS_2026_MILEAGE_RATE_BLENDED = Math.round(((IRS_2026_MILEAGE_RATE_H1 + IRS_2026_MILEAGE_RATE_H2) / 2) * 10000) / 10000;
7
+ /** Active H2 2026 IRS business standard mileage rate (effective July 1, 2026) */
8
+ export const IRS_2026_MILEAGE_RATE = IRS_2026_MILEAGE_RATE_H2;
9
+ export const GIG_PLATFORMS = [
10
+ {
11
+ slug: 'uber',
12
+ name: 'Uber',
13
+ roleLabel: 'Rideshare Driver',
14
+ tagline: 'Calculate 2026 Uber 1099-NEC & 1099-K self-employment taxes, split 2026 IRS mileage deductions ($0.725/mi Jan–Jun & $0.76/mi Jul–Dec), quarterly payments, and net hourly take-home pay.',
15
+ supportsMileage: true,
16
+ defaultGrossRevenue: 52000,
17
+ defaultMiles: 28000,
18
+ defaultOtherExpenses: 2400,
19
+ defaultHoursPerWeek: 35,
20
+ defaultPlatformFeePct: 0,
21
+ defaultStateSlug: 'california',
22
+ taxFormLabel: 'Form 1099-NEC & 1099-K',
23
+ platformFeeNote: 'Uber driver 1099-NEC payouts and bank deposits already reflect net driver pay after Uber booking/service fees, so Platform Cut defaults to 0%. If you input gross rider fares from your Uber Annual Tax Summary, include Uber service fees in Other Schedule C Expenses.',
24
+ commonDeductions: [
25
+ 'IRS Standard Mileage ($0.725/mi Jan 1–Jun 30 & $0.76/mi Jul 1–Dec 31, 2026) for all online, pickup, and repositioning miles',
26
+ 'Business share of smartphone hardware and monthly unlimited wireless plan',
27
+ 'Highway tolls, airport queue fees, and business parking paid while driving',
28
+ 'Dual-facing dashcam, magnetic phone mount, fast chargers, and passenger water/snacks',
29
+ 'Frequent car washes, vacuuming, floor mats, and interior detailing supplies',
30
+ 'Rideshare insurance endorsement difference, mileage-tracking app, and tax software',
31
+ ],
32
+ tips: [
33
+ 'Split your 2026 odometer log at June 30 / July 1: under IRS Announcement 2026-11, miles driven Jan–Jun deduct at $0.725/mi while Jul–Dec miles deduct at $0.76/mi.',
34
+ 'Track every deadhead mile from the moment you go online until your final drop-off—app-reported "trip miles" miss up to 35% of deductible driving.',
35
+ 'Do not double-count gas, oil changes, tires, or auto insurance on top of the 2026 standard mileage rate ($0.725/$0.76/mi); those vehicle costs are already built in.',
36
+ ],
37
+ rivals: ['lyft', 'doordash', 'instacart', 'amazon-flex'],
38
+ faqs: [
39
+ {
40
+ q: 'How much should Uber drivers set aside for taxes in 2026?',
41
+ a: 'After claiming the 2026 IRS standard mileage deduction ($0.725/mi Jan–Jun and $0.76/mi Jul–Dec) and wireless/supply write-offs, many full-time Uber drivers owe roughly 10% to 18% of their gross payouts in combined self-employment (15.3%) and federal/state income tax, depending on state rates and filing status.',
42
+ },
43
+ {
44
+ q: 'Why does Uber issue both a 1099-K and a 1099-NEC?',
45
+ a: 'Uber generally reports gross passenger fare payments on Form 1099-K (when thresholds apply) and promotions, quests, or referral bonuses on Form 1099-NEC. Your Uber Annual Tax Summary breaks out Uber service fees and tolls so you can deduct them on Schedule C and avoid paying tax on money you never kept.',
46
+ },
47
+ {
48
+ q: 'Can Uber drivers deduct deadhead miles between rides?',
49
+ a: 'Yes. Once you are online and actively available for trips—driving to pickup locations, returning from drop-offs, or repositioning to busy zones—those business miles qualify for the 2026 IRS rate ($0.725/mi through June 30 and $0.76/mi starting July 1, 2026).',
50
+ },
51
+ {
52
+ q: 'Should Uber drivers use the 2026 standard mileage rate ($0.725/$0.76/mi) or actual car expenses?',
53
+ a: 'Most rideshare drivers save significantly more with the 2026 IRS standard rate ($0.725/mi Jan–Jun, raised mid-year to $0.76/mi Jul–Dec), especially in fuel-efficient hybrids or older vehicles. You must choose standard mileage in the first year you place a vehicle into rideshare service if you want the option to switch later.',
54
+ },
55
+ ],
56
+ },
57
+ {
58
+ slug: 'doordash',
59
+ name: 'DoorDash',
60
+ roleLabel: 'Delivery Dasher',
61
+ tagline: 'Estimate 2026 DoorDash 1099-NEC taxes, split 2026 IRS mileage savings ($0.725/mi Jan–Jun & $0.76/mi Jul–Dec), quarterly IRS installments, and true after-tax hourly earnings.',
62
+ supportsMileage: true,
63
+ defaultGrossRevenue: 36000,
64
+ defaultMiles: 21000,
65
+ defaultOtherExpenses: 1500,
66
+ defaultHoursPerWeek: 30,
67
+ defaultPlatformFeePct: 0,
68
+ defaultStateSlug: 'texas',
69
+ taxFormLabel: 'Form 1099-NEC',
70
+ platformFeeNote: 'DoorDash Form 1099-NEC reports your net Dasher earnings (base pay, peak pay, challenges, and 100% of customer tips) directly with 0% platform commission withheld.',
71
+ commonDeductions: [
72
+ 'IRS Standard Mileage ($0.725/mi Jan 1–Jun 30 & $0.76/mi Jul 1–Dec 31, 2026) from restaurant dispatch to drop-off and hotspot return',
73
+ 'Insulated thermal delivery bags, pizza bags, and sturdy drink carriers',
74
+ 'Business percentage of your smartphone purchase and monthly cellular data plan',
75
+ 'Fast Pay instant cashout fees and bank transfer charges',
76
+ 'Phone mounts, portable power banks, flashlights, and foul-weather delivery gear',
77
+ 'Mileage tracking subscription (Stride, Gridwise, Everlance) and tax prep fees',
78
+ ],
79
+ tips: [
80
+ 'Separate your 2026 delivery mileage log by half-year: IRS Announcement 2026-11 increased the business rate from $0.725/mi (Jan–Jun) to $0.76/mi starting July 1, 2026.',
81
+ 'Start your mileage tracker when you leave to pick up your first order and stop only when you end your Dash—DoorDash only estimates active delivery miles.',
82
+ 'Monitor your net earnings per total mile: if a batch pays under $1.25/mile round-trip, vehicle depreciation and SE tax can wipe out your margin.',
83
+ ],
84
+ rivals: ['uber', 'instacart', 'amazon-flex', 'lyft'],
85
+ faqs: [
86
+ {
87
+ q: 'Are DoorDash tips included on Form 1099-NEC and subject to tax?',
88
+ a: 'Yes. All cashless base pay, peak pay, and customer tips paid through DoorDash are totaled on your Form 1099-NEC and are subject to both 15.3% self-employment tax and regular income tax after Schedule C deductions.',
89
+ },
90
+ {
91
+ q: 'What happens if I earned under $600 on DoorDash in 2026?',
92
+ a: 'Even if DoorDash does not issue a Form 1099-NEC below reporting thresholds, the IRS requires reporting all self-employment income whenever net Schedule C profit across all gig work reaches $400 or more.',
93
+ },
94
+ {
95
+ q: 'Can Dashers deduct insulated hot bags and phone plans?',
96
+ a: 'Yes. Thermal bags, drink caddies, phone mounts, and the business-use percentage of your cell phone bill are ordinary and necessary Schedule C expenses you can deduct alongside the 2026 standard mileage rate ($0.725/mi Jan–Jun & $0.76/mi Jul–Dec).',
97
+ },
98
+ {
99
+ q: 'Do DoorDash drivers qualify for the 20% QBI deduction?',
100
+ a: 'Yes. Independent Dashers operating as sole proprietors or single-member LLCs generally qualify for the federal 20% Section 199A Qualified Business Income deduction on net Schedule C profit.',
101
+ },
102
+ ],
103
+ },
104
+ {
105
+ slug: 'instacart',
106
+ name: 'Instacart',
107
+ roleLabel: 'Full-Service Shopper',
108
+ tagline: 'Calculate 2026 Instacart Shopper 1099-NEC taxes, split 2026 IRS delivery mileage deductions ($0.725/mi Jan–Jun & $0.76/mi Jul–Dec), equipment write-offs, and net hourly pay.',
109
+ supportsMileage: true,
110
+ defaultGrossRevenue: 34000,
111
+ defaultMiles: 16500,
112
+ defaultOtherExpenses: 1600,
113
+ defaultHoursPerWeek: 28,
114
+ defaultPlatformFeePct: 0,
115
+ defaultStateSlug: 'florida',
116
+ taxFormLabel: 'Form 1099-NEC',
117
+ platformFeeNote: 'Instacart issues Form 1099-NEC for your full batch pay, heavy-order bumps, and customer tips with 0% commission subtracted from your reported payout.',
118
+ commonDeductions: [
119
+ 'IRS Standard Mileage ($0.725/mi Jan 1–Jun 30 & $0.76/mi Jul 1–Dec 31, 2026) driving between stores and customer drop-offs',
120
+ 'Collapsible grocery wagon, stair-climbing cart, and heavy-duty tote crates',
121
+ 'Insulated freezer bags, ice packs, and temperature-controlled coolers',
122
+ 'Business share of smartphone hardware, unlimited data plan, and portable power banks',
123
+ 'Instant Cashout payout fees and metered parking / bridge tolls',
124
+ 'Mileage-tracking apps, gloves/rain gear, and Schedule C tax preparation software',
125
+ ],
126
+ tips: [
127
+ 'Split your 2026 mileage log at July 1: business miles driven Jan 1–Jun 30 deduct at $0.725/mi while Jul 1–Dec 31 miles qualify for the $0.76/mi mid-year IRS rate.',
128
+ 'Instacart involves substantial in-store shopping time, so your miles-per-dollar are lower than rideshare—make sure you capture every phone, wagon, and cooler deduction.',
129
+ 'Check whether you also drive for DoorDash or Uber—keep one unified mileage log across apps without overlapping or double-counting miles.',
130
+ ],
131
+ rivals: ['doordash', 'amazon-flex', 'uber', 'lyft'],
132
+ faqs: [
133
+ {
134
+ q: 'Why is the Instacart mileage deduction lower than Uber or DoorDash?',
135
+ a: 'Full-service Instacart Shoppers spend a large share of each batch walking store aisles rather than driving. That means fewer deductible miles per dollar earned, making non-mileage Schedule C write-offs (carts, bags, phone plan %) especially valuable.',
136
+ },
137
+ {
138
+ q: 'Are collapsible carts and insulated bags 100% tax deductible?',
139
+ a: 'Yes. Equipment bought strictly for grocery delivery—like heavy-duty folding wagons, insulated freezer bags, and thermal totes—can be deducted in full as Schedule C supplies.',
140
+ },
141
+ {
142
+ q: 'Can I deduct the cost of my smartphone and data plan as an Instacart Shopper?',
143
+ a: 'You can deduct the business-use percentage of your monthly cellular plan and smartphone cost. Many full-time shoppers track total hours on the Instacart Shopper app to justify a reasonable 50%–75% business allocation.',
144
+ },
145
+ {
146
+ q: 'Do Instacart Shoppers need to pay quarterly estimated taxes?',
147
+ a: 'If you expect to owe at least $1,000 in federal tax for 2026 after any W-2 withholding, the IRS expects quarterly Form 1040-ES payments due April 15, June 15, September 15, and January 15.',
148
+ },
149
+ ],
150
+ },
151
+ {
152
+ slug: 'amazon-flex',
153
+ name: 'Amazon Flex',
154
+ roleLabel: 'Parcel Delivery Partner',
155
+ tagline: 'Calculate 2026 Amazon Flex 1099-NEC taxes, split 2026 IRS block mileage deductions ($0.725/mi Jan–Jun & $0.76/mi Jul–Dec), quarterly IRS estimates, and real after-tax hourly pay.',
156
+ supportsMileage: true,
157
+ defaultGrossRevenue: 42000,
158
+ defaultMiles: 24000,
159
+ defaultOtherExpenses: 1400,
160
+ defaultHoursPerWeek: 30,
161
+ defaultPlatformFeePct: 0,
162
+ defaultStateSlug: 'texas',
163
+ taxFormLabel: 'Form 1099-NEC',
164
+ platformFeeNote: 'Amazon Flex pays your full block offer plus Fresh/Whole Foods tips on Form 1099-NEC with 0% platform commission deducted.',
165
+ commonDeductions: [
166
+ 'IRS Standard Mileage ($0.725/mi Jan 1–Jun 30 & $0.76/mi Jul 1–Dec 31, 2026) from pickup station through final parcel delivery',
167
+ 'Folding hand truck, parcel sorting totes, and trunk cargo organizers',
168
+ 'Headlamp, reflective safety vest, and weatherproof delivery boots/rain jacket',
169
+ 'Business portion of smartphone, unlimited data plan, and dash mount/chargers',
170
+ 'Highway tolls, parking fees, and commercial/delivery auto insurance rider excess',
171
+ 'Mileage tracking app subscription and Schedule C bookkeeping/tax filing tools',
172
+ ],
173
+ tips: [
174
+ 'Log odometer readings separately before and after July 1, 2026—high-mileage suburban blocks generate $0.725/mi (H1) and $0.76/mi (H2) write-offs often exceeding 40% of gross pay.',
175
+ 'Be conservative on commuting miles: driving from home to your first warehouse pickup may be non-deductible commuting unless you maintain a qualifying administrative home office.',
176
+ 'Factor return-trip miles after your last stop when evaluating whether a base-rate block actually beats your local after-tax minimum wage.',
177
+ ],
178
+ rivals: ['doordash', 'instacart', 'uber', 'lyft'],
179
+ faqs: [
180
+ {
181
+ q: 'Can Amazon Flex drivers deduct miles from home to the delivery station?',
182
+ a: 'Under IRS commuting rules, driving from home to your first regular pickup station is generally commuting unless your home qualifies as your principal place of business (administrative home office). Miles between the warehouse, every customer stop, and between multiple blocks are fully deductible.',
183
+ },
184
+ {
185
+ q: 'How much does the 2026 IRS mileage deduction ($0.725/$0.76/mi) save an Amazon Flex driver?',
186
+ a: 'At 24,000 business miles split evenly across the year (12,000 mi Jan–Jun at $0.725/mi + 12,000 mi Jul–Dec at $0.76/mi), the 2026 IRS rates create a $17,820 Schedule C write-off. Because every dollar of Schedule C expense reduces both 15.3% self-employment tax and your marginal income tax bracket, that deduction often cuts your annual IRS bill by $3,800 to $5,500+.',
187
+ },
188
+ {
189
+ q: 'Are Whole Foods and Amazon Fresh tips included on my 1099-NEC?',
190
+ a: 'Yes. Amazon combines base block pay and customer tips from Fresh/Whole Foods routes into one Form 1099-NEC total.',
191
+ },
192
+ {
193
+ q: 'Can I deduct car repairs and gas if I claim the 2026 IRS standard mileage rate?',
194
+ a: 'No. The 2026 standard mileage rate ($0.725/mi Jan–Jun and $0.76/mi Jul–Dec) replaces actual fuel, oil changes, tires, repairs, registration, and vehicle depreciation. You can still deduct tolls, parking, sorting gear, and your business phone share separately.',
195
+ },
196
+ ],
197
+ },
198
+ {
199
+ slug: 'lyft',
200
+ name: 'Lyft',
201
+ roleLabel: 'Rideshare Driver',
202
+ tagline: 'Estimate 2026 Lyft 1099-NEC & 1099-K self-employment taxes, split 2026 IRS mileage deductions ($0.725/mi Jan–Jun & $0.76/mi Jul–Dec), and real net take-home pay per hour.',
203
+ supportsMileage: true,
204
+ defaultGrossRevenue: 48000,
205
+ defaultMiles: 26000,
206
+ defaultOtherExpenses: 2200,
207
+ defaultHoursPerWeek: 34,
208
+ defaultPlatformFeePct: 0,
209
+ defaultStateSlug: 'illinois',
210
+ taxFormLabel: 'Form 1099-NEC & 1099-K',
211
+ platformFeeNote: 'Lyft bank deposits and net driver earnings exclude Lyft platform/service fees (0% cut needed when entering actual driver payouts). If you enter gross passenger charges from a 1099-K, include Lyft fees from your Annual Tax Summary as an expense.',
212
+ commonDeductions: [
213
+ 'IRS Standard Mileage ($0.725/mi Jan 1–Jun 30 & $0.76/mi Jul 1–Dec 31, 2026) for online, en-route, and passenger trip miles',
214
+ 'Express Pay instant cashout fees and Lyft platform fees (if reporting gross 1099-K)',
215
+ 'Business percentage of smartphone hardware and unlimited cellular data plan',
216
+ 'Car washes, interior detailing, odor eliminators, and seat protectors',
217
+ 'Dashcam, dual phone mount, multi-port charging cables, and passenger amenities',
218
+ 'Rideshare insurance endorsement delta, tolls, airport fees, and tax software',
219
+ ],
220
+ tips: [
221
+ 'Split your 2026 mileage log at July 1: under IRS Announcement 2026-11, Jan–Jun miles deduct at $0.725/mi while Jul–Dec miles deduct at $0.76/mi.',
222
+ 'Reconcile your Lyft Annual Summary against bank deposits before filing so you never accidentally pay tax on Lyft’s passenger-side platform fees shown on Form 1099-K.',
223
+ 'If you drive both Lyft and Uber in the same shift, track continuous online business mileage once—never claim the same trip mile on two Schedule C logs.',
224
+ ],
225
+ rivals: ['uber', 'doordash', 'instacart', 'amazon-flex'],
226
+ faqs: [
227
+ {
228
+ q: 'Why does my Lyft 1099-K look higher than what hit my bank account?',
229
+ a: 'Form 1099-K reports gross passenger payments processed before Lyft deducts its platform fee, service fee, and third-party pass-through fees. You report that gross figure on Schedule C and deduct all Lyft fees shown on your Lyft Annual Summary so you are taxed only on net driver earnings.',
230
+ },
231
+ {
232
+ q: 'Are Lyft Express Pay $0.85 cashout fees tax deductible?',
233
+ a: 'Yes. Instant payout fees and Lyft Direct bank charges incurred to receive your earnings are deductible business banking fees on Schedule C.',
234
+ },
235
+ {
236
+ q: 'How do multi-app drivers handle Uber and Lyft mileage?',
237
+ a: 'You may combine all rideshare driving under one Schedule C rideshare business or separate logs, provided every business mile is counted strictly once when either app is online and actively working.',
238
+ },
239
+ {
240
+ q: 'How much tax does the 2026 IRS mileage rate ($0.725/$0.76/mi) save a Lyft driver?',
241
+ a: 'Driving 26,000 business miles split evenly across the year (13,000 mi H1 at $0.725/mi + 13,000 mi H2 at $0.76/mi) produces a $19,305 Schedule C deduction, typically cutting combined self-employment and federal/state income taxes by $4,100 to $6,200+ per year.',
242
+ },
243
+ ],
244
+ },
245
+ {
246
+ slug: 'youtube',
247
+ name: 'YouTube',
248
+ roleLabel: 'Video Creator & Partner',
249
+ tagline: 'Calculate 2026 YouTube AdSense & sponsorship 1099-NEC taxes, gear & studio Schedule C write-offs, quarterly IRS estimates, and net hourly pay.',
250
+ supportsMileage: false,
251
+ defaultGrossRevenue: 75000,
252
+ defaultMiles: 0,
253
+ defaultOtherExpenses: 14000,
254
+ defaultHoursPerWeek: 35,
255
+ defaultPlatformFeePct: 0,
256
+ defaultStateSlug: 'california',
257
+ taxFormLabel: 'Form 1099-NEC (Google AdSense)',
258
+ platformFeeNote: 'Google AdSense issues Form 1099-NEC for your net creator payout (already reflecting your 55% long-form or 45% Shorts share), and brand sponsorships pay 100% directly—keep Platform Cut at 0%.',
259
+ commonDeductions: [
260
+ 'Cameras, lenses, microphones, lighting rigs, and editing workstations (Section 179)',
261
+ 'Editing suites, music licensing, thumbnail tools, and cloud backup (Adobe, Epidemic Sound)',
262
+ 'Contract video editors, thumbnail designers, and scriptwriters (issue 1099-NEC if >= $600)',
263
+ 'Dedicated home studio office deduction (simplified $5/sq ft or actual space %)',
264
+ 'Set props, review gear, software licenses, and production travel strictly for filming',
265
+ 'Business LLC fees, trademark/copyright costs, liability insurance, and CPA bookkeeping',
266
+ ],
267
+ tips: [
268
+ 'Combine AdSense 1099-NEC payouts, brand sponsorship deals, affiliate commissions, and merch revenue into your Schedule C gross receipts before calculating quarterly taxes.',
269
+ 'Remember that free review products sent by sponsors under a deliverable contract count as taxable barter income at fair market value—unless fully consumed as a business prop.',
270
+ 'Once annual net creator profit passes roughly $75,000–$90,000, ask a CPA whether electing S-Corp status makes sense to reduce 15.3% self-employment tax.',
271
+ ],
272
+ rivals: ['onlyfans', 'uber', 'doordash'],
273
+ faqs: [
274
+ {
275
+ q: 'Does YouTube withhold taxes from AdSense payouts for US creators?',
276
+ a: 'Normally no, provided you submitted an accurate Form W-9 in AdSense. Google reports your full net payouts on Form 1099-NEC, leaving you responsible for quarterly Form 1040-ES self-employment and income tax payments.',
277
+ },
278
+ {
279
+ q: 'Can YouTubers write off cameras, PCs, and microphones immediately?',
280
+ a: 'Yes. Equipment used exclusively or predominantly for channel production can typically be expensed in full during the purchase year under Section 179 or bonus depreciation rules.',
281
+ },
282
+ {
283
+ q: 'Do I owe taxes on brand sponsorships and free review products?',
284
+ a: 'Yes. Cash sponsorships are standard business income, and products received in exchange for a contracted video review are generally taxable at fair market value unless used strictly as business equipment/props.',
285
+ },
286
+ {
287
+ q: 'Can I deduct a home studio room on Schedule C?',
288
+ a: 'If a specific room or clearly defined area of your home is used regularly and exclusively for filming, editing, and managing your channel, you can claim either the simplified home office deduction or actual pro-rata housing expenses.',
289
+ },
290
+ ],
291
+ },
292
+ {
293
+ slug: 'onlyfans',
294
+ name: 'OnlyFans',
295
+ roleLabel: 'Digital Subscription Creator',
296
+ tagline: 'Calculate 2026 OnlyFans 1099-NEC self-employment taxes after OnlyFans’ 20% creator cut, studio & gear deductions, and quarterly IRS set-asides.',
297
+ supportsMileage: false,
298
+ defaultGrossRevenue: 85000,
299
+ defaultMiles: 0,
300
+ defaultOtherExpenses: 11000,
301
+ defaultHoursPerWeek: 30,
302
+ defaultPlatformFeePct: 0.20,
303
+ defaultStateSlug: 'florida',
304
+ taxFormLabel: 'Form 1099-NEC',
305
+ platformFeeNote: 'OnlyFans takes a flat 20% commission on gross subscriptions, PPV messages, and tips. Enter your gross sales with Platform Cut at 20%—or if entering your net Form 1099-NEC payout, set Platform Cut to 0%.',
306
+ commonDeductions: [
307
+ 'Cameras, ring/key lighting, tripods, backdrops, and dedicated creator smartphone',
308
+ 'Dedicated home studio room used exclusively for filming and content editing',
309
+ 'Content-exclusive costumes, props, and shoot sets (not everyday wearable clothing)',
310
+ 'Photo/video editing apps, social scheduling tools, VPN, and encrypted cloud storage',
311
+ 'DMCA takedown / privacy protection services, PO Box, and LLC formation/registered agent',
312
+ 'Contract photographers, agencies, moderators, and specialized 1099 creator CPAs',
313
+ ],
314
+ tips: [
315
+ 'Be strict on wardrobe deductions: everyday apparel adaptable to normal wear is disallowed by the IRS, whereas unmistakable stage costumes or shoot props used solely for content qualify.',
316
+ 'Keep personal and creator banking cleanly separated via a business checking account or single-member LLC so Schedule C write-offs stay audit-ready.',
317
+ 'Remember Form 1099-NEC sends zero taxes to the IRS—save 25%–30% of net creator payouts into a tax reserve account for quarterly Form 1040-ES payments.',
318
+ ],
319
+ rivals: ['youtube', 'uber', 'lyft'],
320
+ faqs: [
321
+ {
322
+ q: 'Does OnlyFans report gross subscriber sales or the 80% net payout on Form 1099-NEC?',
323
+ a: 'Fenix International (OnlyFans) typically reports the creator’s net 80% earnings paid out on Form 1099-NEC. If you enter your net 1099-NEC total in this calculator, set Platform Cut to 0%; if you enter gross fan spending from your dashboard, keep Platform Cut at 20%.',
324
+ },
325
+ {
326
+ q: 'What expenses can OnlyFans creators legally deduct on Schedule C?',
327
+ a: 'Ordinary and necessary business expenses include lighting, cameras, studio props, editing software, DMCA privacy services, promotional ads, dedicated filming room costs, and agency/photographer fees—while everyday clothing, gym memberships, and personal grooming generally do not qualify.',
328
+ },
329
+ {
330
+ q: 'How much should an OnlyFans creator set aside for quarterly taxes?',
331
+ a: 'Because creators pay both 15.3% self-employment tax and federal/state income tax with no employer withholding, setting aside 22% to 32% of net profit (depending on your total income and state tax rate) prevents April surprises and IRS penalties.',
332
+ },
333
+ {
334
+ q: 'Can forming an LLC or S-Corp save taxes for higher-earning creators?',
335
+ a: 'A single-member LLC provides privacy and liability separation without changing federal taxes, whereas electing S-Corp taxation once net profit consistently tops ~$80,000–$100,000+ can save thousands in Social Security and Medicare taxes after paying a reasonable salary.',
336
+ },
337
+ ],
338
+ },
339
+ ];
340
+ export const GIG_PLATFORM_MAP = Object.fromEntries(GIG_PLATFORMS.map((p) => [p.slug, p]));