← Back to all articles
·By RealMRR Team

SaaS Tax Deductions: How to Categorize Cloud, AI, and DevTool Expenses (US Schedule C & Canada T2125)

A practical founder guide to putting modern dev bills (Cursor, GitHub, Vercel, OpenAI, AWS, Stripe) on the right lines of US Schedule C and Canada's T2125.

SaaS Tax DeductionsSchedule CCanada T2125Software ExpensesAI API CostsCloud HostingSection 174Developer Accounting

This is general information, not tax advice.

Software startups and AI applications have operational expenses that differ from traditional businesses. Illustrative monthly bills for a small SaaS:

  • $20/mo to Cursor for AI code assistance
  • $44/mo to GitHub for team seats and Actions runners
  • $20/mo to Vercel for frontend hosting
  • $140/mo to Supabase for managed PostgreSQL databases
  • $680/mo to OpenAI and Anthropic for LLM inference
  • $410/mo to Amazon Web Services (AWS) for S3 storage and compute
  • $58/mo to PostHog and Sentry for telemetry and error tracking
  • A percentage plus a fixed fee on every sale, kept by Stripe or Lemon Squeezy (see each provider's pricing page for current rates)

Founders report these expenses on IRS Form 1040 Schedule C in the United States or CRA Form T2125 in Canada.

Standard tax forms use general categories like "Supplies" and "Office expense". They lack explicit fields for API tokens, serverless compute, or payment gateway cuts.

Classifying all software expenses as "Office Expense" causes two major issues:

  1. Harder reviews: a large "office expense" figure with no detail is hard for anyone reviewing your return to understand.
  2. A misleading gross margin: when a buyer reviews your business, hosting and AI costs hidden in general overhead make gross margin look higher than it is, and the buyer will find out in due diligence.

This guide maps modern developer and AI expenses to US Schedule C and Canada T2125. It provides a master lookup table, explains COGS versus OpEx, outlines Section 174 rules, and details year-end tax preparation.


1. Core Tax Principles: OpEx vs. COGS vs. Capital Assets

Tax authorities evaluate software expenditures using three primary categories:

                                  ┌────────────────────────────────────────┐
                                  │   Software & Technology Expenditure    │
                                  └───────────────────┬────────────────────┘
                                                      │
                       ┌──────────────────────────────┴──────────────────────────────┐
                       ▼                                                             ▼
         ┌───────────────────────────┐                                 ┌───────────────────────────┐
         │     Operating Expense     │                                 │   Capital Expenditure     │
         │   (Ordinary & Necessary)  │                                 │    (Multi-Year Asset)     │
         └─────────────┬─────────────┘                                 └─────────────┬─────────────┘
                       │                                                             │
         ┌─────────────┴─────────────┐                                               │
         ▼                           ▼                                               ▼
┌──────────────────┐       ┌──────────────────┐                        ┌───────────────────────────┐
│ Cost of Goods    │       │ Operating        │                        │ Section 179 / CCA         │
│ Sold (COGS)      │       │ Overhead (OpEx)  │                        │ (Physical Hardware /      │
│ Directly tied to │       │ Internal tools,  │                        │ Perpetual Offline Softw.) │
│ serving customers│       │ marketing, admin │                        └───────────────────────────┘
└──────────────────┘       └──────────────────┘

The Three Foundational Buckets

  1. Operating Overhead (OpEx): Under IRC Section 162 in the US and paragraph 18(1)(a) of Canada's Income Tax Act, ordinary business tools are deductible in the year. These include team communication tools, Google Workspace, GitHub seats, and project management platforms.

  2. Cost of Goods Sold (COGS): These are direct variable costs required to deliver your software to paying customers. If customer usage stops, these costs drop to zero. Examples include OpenAI API usage from customer requests, database queries generated by user activity, and payment processing fees.

  3. Capital Expenditures (CapEx): Assets providing long-term utility lasting more than one year. Recurring monthly SaaS subscriptions are not capital assets. But physical computer hardware and perpetual offline software licenses fall into this category. They require depreciation or elections such as Section 179 in the US or Capital Cost Allowance (CCA) in Canada (class 50 for computers).


2. Modern Dev Stack Master Tax Mapping Table

This reference table maps modern developer services and cloud invoices to US Schedule C (Form 1040) and Canada CRA Form T2125:

Tool / Service Category US Schedule C Canada T2125
Cursor, GitHub, Linear, Jira, Figma, PostHog, Sentry Software Line 27b, listed in Part V Line 9270 Other expenses
Google Workspace, 1Password Software Line 27b, listed in Part V Line 9270 Other expenses
OpenAI and Anthropic APIs (production and internal) AI and APIs Line 27b, listed in Part V Line 9270 Other expenses
AWS, Vercel, Netlify, Render, Cloudflare Hosting Line 27b, listed in Part V Line 9270 Other expenses
Neon, Supabase, PlanetScale Hosting Line 27b, listed in Part V Line 9270 Other expenses
Postmark, Resend, SendGrid Email Line 27b, listed in Part V Line 9270 Other expenses
Domain registrations Other expenses Line 27b, listed in Part V Line 9270 Other expenses
Stripe, Paddle, Lemon Squeezy fees Payment fees Line 27b, listed in Part V Line 8871 Management and administration fees
Freelance developers and designers Contractors Line 11 Contract labor Line 8860 Professional fees
Laptop, $2,500 or less Equipment Line 27b, listed in Part V (de minimis safe harbor) Line 9936 CCA, class 50
Laptop over $2,500 Equipment Line 13 Depreciation, through Form 4562 Line 9936 CCA, class 50

No line on either form names AI, hosting or payment fees, so these are judgment calls. They are the lines RealMRR's yearly tax report uses. Your accountant may choose others: some use Schedule C line 10 for payment fees, or Part III for direct hosting costs. Whatever you choose, stay consistent from year to year.


3. US Schedule C: Breakdown for Solo Founders

In the United States, sole proprietors and single-member LLCs file Schedule C with their personal Form 1040.

+---------------------------------------------------------------------------------------------------+
|  IRS Form 1040 - Schedule C: Lines for Software Founders (as RealMRR's tax report maps them)      |
+---------------------------------------------------------------------------------------------------+
|  Line 1   Gross receipts or sales (before payment processor fees)                                 |
|  Line 2   Returns and allowances (refunds)                                                        |
|  Line 7   Gross income                                                                            |
+---------------------------------------------------------------------------------------------------+
|  PART II - EXPENSES                                                                               |
|  Line 11  Contract labor (freelance developers and designers)                                     |
|  Line 13  Depreciation (equipment over $2,500 an item, through Form 4562)                         |
|  Line 27b Other expenses (total from Part V)                                                      |
+---------------------------------------------------------------------------------------------------+
|  PART V - OTHER EXPENSES (list each one)                                                          |
|  • AI and APIs (OpenAI, Anthropic)                                                                |
|  • Hosting (AWS, Vercel, Cloudflare, Neon)                                                        |
|  • Software (Cursor, GitHub, Sentry, Linear, Google Workspace)                                    |
|  • Email (Resend, Postmark)                                                                       |
|  • Payment fees (Stripe, Paddle, Lemon Squeezy)                                                   |
|  • Other (domains and anything no other line covers)                                              |
|  • Equipment up to $2,500 an item (de minimis safe harbor)                                        |
+---------------------------------------------------------------------------------------------------+

Line 1 and Part V: Gross Receipts vs. Net Payouts

A common accounting error involves reporting net Stripe payouts instead of gross customer billings.

Consider a SaaS processing $100,000 in gross customer billings through Stripe. Stripe deducts $3,200 in processing fees and deposits $96,800 into your business bank account:

  • Incorrect Method: Reporting $96,800 on Line 1 and $0 in fees.
  • Correct IRS Method:
    1. Report $100,000 on Line 1 (Gross receipts or sales). A Form 1099-K, if you receive one, reports gross amounts before fees.
    2. Report $3,200 as payment fees in Part V (line 27b). Some accountants use line 10 (commissions and fees) instead.

Reporting only $96,800 on Line 1 leaves a $3,200 gap against any Form 1099-K your processor files, which can lead to an IRS notice. Always report gross sales and deduct payment processing fees separately.

Part V: Other Expenses

RealMRR's yearly tax report puts software subscriptions, hosting, AI APIs, email and payment fees on line 27b and lists each one in Part V. The Schedule C instructions name software subscriptions in Part V. No line names AI, hosting or payment fees, so Part V takes what no other line covers.

Some accountants put admin software such as Google Workspace or accounting apps on line 18 (office expense). Ask yours, and stay consistent from year to year.

On page 2 of Schedule C, list each group in Part V. Illustrative example:

Part V - Other Expenses:
- Cloud Hosting & Infrastructure:      $8,420
- Developer Software Subscriptions:    $2,160
- Application Telemetry & Monitoring:    $840
- Domain Names & DNS Services:           $120
-----------------------------------------------
Total Other Expenses (Enter on Line 27b): $11,540

This itemized breakdown provides clear documentation for tax reviewers.


Part III: Cost of Goods Sold (COGS) for Modern AI Applications

Traditional software often operated with minimal direct delivery costs. Modern AI applications and usage-based products have direct variable costs per customer.

Illustrative example: when a customer pays $50 per month for an AI summarization app, active use consumes:

  1. $18.50 in OpenAI API or Anthropic Claude tokens.
  2. $4.20 in Pinecone or Qdrant vector database queries.
  3. $2.10 in serverless compute on AWS Lambda or Vercel.

If the customer cancels, these costs stop immediately. They are variable Cost of Goods Sold.

On the tax form

RealMRR's tax report doesn't use Part III: it reports AI and hosting costs on line 27b like any other expense. For a software business with no inventory, taxable profit is the same either way. If your accountant prefers to report direct delivery costs in Part III, the total on line 42 goes to line 4.

For your own numbers, track these delivery costs separately, whichever line they land on. Buyers look at gross margin (gross profit ÷ revenue), and delivery costs hidden in general overhead make it look higher than it is.


4. IRC Section 174 Software Capitalization Rules

Software development expenses in the United States follow specific rules under Internal Revenue Code (IRC) Section 174.

+---------------------------------------------------------------------------------------------------+
|  IRC Sections 174 and 174A: Overview                                                              |
+---------------------------------------------------------------------------------------------------+
|  Before 2022:   Research and software development costs could be deducted in the year incurred.   |
|  2022-2024:     Section 174 required 5-year amortization for research done in the US and          |
|                 15-year amortization for research done outside the US.                            |
|  From 2025:     Section 174A allows immediate expensing of US research again. Research done       |
|                 outside the US is still amortized over 15 years.                                  |
+---------------------------------------------------------------------------------------------------+

Background on Section 174

Under the 2017 Tax Cuts and Jobs Act, businesses could not deduct software development immediately for tax years after 2021. Companies had to amortize costs over 5 years for domestic work or 15 years for research done outside the US, creating paper profits where tax liabilities exceeded cash flow.

Current Section 174 Requirements

The July 2025 tax law (Public Law 119-21) added Section 174A, which restores immediate expensing of domestic research and experimental costs, including software development, for tax years beginning after December 31, 2024. Smaller businesses may be able to apply it to earlier years.

Two specific rules still apply:

  1. Research Done Outside the US (15 Years): Software development performed outside the United States is still amortized over 15 years under Section 174. Whether a payment to a foreign contractor falls under this rule depends on the contract, such as who bears the financial risk and who owns the result, so ask an accountant.

  2. Production Hosting vs. Development Work: Under IRS Notice 2023-63, cloud hosting used to deliver live services to paying customers is not a Section 174 development cost. It is an ordinary operating expense (Section 162) or COGS.

    But compute resources used strictly to build and test unreleased features count as software development.

Maintain separate project tags or accounts for staging and production environments. Classify live production hosting as ordinary operating costs or COGS.


5. Canada CRA Form T2125: Guide for Canadian Founders

Canadian founders operating an unincorporated business report self-employment income on CRA Form T2125 (Statement of Business or Professional Activities).

+---------------------------------------------------------------------------------------------------+
|  CRA Form T2125 - Key Lines for Canadian Software Founders (as RealMRR's tax report maps them)    |
+---------------------------------------------------------------------------------------------------+
|  Part 3A     Gross sales, commissions, or fees (total billings before fees)                       |
|  Part 3B     GST/HST, provincial sales tax, returns, allowances, discounts (refunds)              |
|  Line 8000   Adjusted gross sales                                                                 |
|  Line 8521   Advertising (Google Ads, Meta Ads, sponsored newsletters)                            |
|  Line 8860   Professional fees (freelance developers, accountants)                                |
|  Line 8871   Management and administration fees (Stripe fees, Lemon Squeezy cuts)                 |
|  Line 9270   Other expenses (itemized: AI APIs, hosting, software, email, domains)                |
|  Line 9936   Capital cost allowance (CCA) on computers (class 50)                                 |
+---------------------------------------------------------------------------------------------------+

Line 9270: Other Expenses (Software, AI APIs and Hosting)

No T2125 line names software subscriptions, AI APIs or hosting. RealMRR's tax report puts them on Line 9270 (Other expenses) with an itemized list, because 9270 takes what no other line covers. Some accountants use line 8810 (office expenses) for software; ask yours.

List each group in the line 9270 itemization:

  • AI APIs (OpenAI, Anthropic)
  • Cloud Hosting & Servers (AWS, Vercel, Supabase)
  • Domain Registrations & SSL Certificates
  • Application Telemetry (Sentry, PostHog)

Line 8871: Management and Administration Fees (Payment Gateways)

Payment processing fees from Stripe, PayPal, and Merchant of Record platforms are recorded as management and administration fees on Line 8871.

Do not report net payouts as sales. Report total gross sales in Part 3A and record processing fees on Line 8871.

Capital Cost Allowance (CCA) Class 50: Hardware vs. Software

The CRA separates current expenses from capital property:

  • Cloud Subscriptions and API Usage: Deductible in the tax year on Line 9270.
  • Computer Hardware: Laptops and desktops belong to CCA Class 50, at 55% a year on a declining balance. Computers acquired and in use after April 15, 2024 and before 2027 can be deducted in full in the first year.

6. Three Common Software Tax Scenarios

Founders frequently face edge cases when tracking business expenses:

+---------------------------------------------------------------------------------------------------+
|  Navigating 3 Common Software Tax Scenarios                                                       |
+---------------------------------------------------------------------------------------------------+
|  1. Dual-Use Subscriptions    | Split business vs. personal use by percentage; document with logs.|
|  2. Annual Prepayments        | US only: the "12-Month Rule" can allow deducting it all upfront.  |
|  3. Hardware Purchases        | US: de minimis up to $2,500 an item. Canada: CCA class 50.        |
+---------------------------------------------------------------------------------------------------+

1. Dual-Use Accounts (Business vs. Personal)

Founders often use single subscriptions for mixed purposes:

  • The Rule: Deduct only the business portion of mixed-use expenses.
  • Implementation: If you use ChatGPT Plus 80% for product development, deduct 80% ($16 of a $20 monthly fee). Document your allocation percentage for tax records.

2. Annual Prepayments and the 12-Month Rule

Many services offer a discount for paying a year upfront:

  • The IRS 12-Month Rule: Under Treasury Regulation § 1.263(a)-4(f), cash-basis taxpayers can deduct prepaid expenses immediately. The coverage period must not exceed 12 months.
  • Because standard annual SaaS contracts cover 12 months, you can deduct the full annual payment in the year paid. Multi-year contracts (such as three-year reserved cloud commitments) must be amortized over their contract term.

This is a US rule. In Canada, a prepaid expense is deducted in the year it covers. RealMRR's books spread a yearly cost you enter across the 12 months it covers, so its tax report does not deduct the full payment upfront. If you use the 12-month rule, adjust for it with your accountant.

3. Hardware Purchases and Safe Harbor Limits

Hardware purchases follow specific limits. Under the US de minimis safe harbor (Treas. Reg. § 1.263(a)-1(f)), an item costing $2,500 or less can be deducted in full as an other expense in Part V (line 27b). You attach the election statement to your return, and the policy must be in place at the start of the year. Above $2,500, computers are depreciated through Form 4562 onto line 13; property acquired after January 19, 2025 qualifies for a 100% special depreciation allowance. In Canada, computers go in CCA Class 50 (55% declining balance), and computers acquired and in use after April 15, 2024 and before 2027 can be deducted in full in the first year.


7. Why Clean Categories Help When You Sell

Buyers look at gross margin and at Seller's Discretionary Earnings (SDE) or adjusted EBITDA. If hosting, AI and payment costs sit in one general bucket, a buyer has to rebuild your numbers before trusting them. Keep the costs of serving customers (hosting, AI APIs, payment fees) apart from the tools you use to run the business, and keep discretionary founder spending easy to spot.

RealMRR reads revenue and costs from your providers' APIs and shows them by product. Once a year it prepares a tax report for the US or Canada on the lines in the table above. It does not file your taxes or guarantee the result, so check the numbers with your accountant before you file.


8. Year-End Tax Preparation Checklist

Follow this checklist to prepare annual tax filings:

+---------------------------------------------------------------------------------------------------+
|  The 6-Step Year-End Tax Protocol for Software Founders                                           |
+---------------------------------------------------------------------------------------------------+
|  [ ] 1. Pull Gross Billing Reports from Payment Processors (Stripe, Lemon Squeezy, Paddle)        |
|  [ ] 2. Segregate Payment Processing Fees (Reconcile 1099-K against actual deposits)              |
|  [ ] 3. Split Cloud Invoices into Production (COGS) vs. Development/Staging (OpEx)                |
|  [ ] 4. Collect Digital Invoices for All Software Subscriptions (Cursor, GitHub, Vercel)          |
|  [ ] 5. Attach the De Minimis Safe Harbor Election Statement to Your Return (US Filers)           |
|  [ ] 6. Export RealMRR's Yearly Tax Report and Check It With Your Accountant                      |
+---------------------------------------------------------------------------------------------------+

Step 1: Download Gross Revenue Reports

Download annual reports from your payment gateway. Record gross volume (Schedule C line 1 / T2125 Part 3A), fees (Part V line 27b / line 8871), and refunds (Schedule C line 2 / T2125 Part 3B).

Step 2: Separate AI Token Expenses

Track API spend from production separately from internal testing. Both go on line 27b (line 9270 in Canada), but the split matters for gross margin and for Section 174.

Step 3: Itemize Part V Other Expenses

Group software expenses into categories: Cloud Infrastructure, Developer Tools, Telemetry, and Communications.

Step 4: Archive Digital PDF Receipts

Keep invoices from all hosting and SaaS vendors: at least 3 years in the US and 6 years in Canada.

Step 5: Document Contractor Development

Collect Form W-9 for US contractors or Form W-8BEN for international contractors. Collect Form W-9 for US contractors or Form W-8BEN for international contractors. Issue Form 1099-NEC to US contractors paid at or above the IRS reporting threshold. It was $600 for many years; the July 2025 tax law raises it for payments made from 2026.

Step 6: Connect to RealMRR to Confirm Net Margins

Connect billing and cloud accounts to RealMRR to see revenue, costs and profit by product through the year, and use its yearly tax report as a starting point for your accountant.

Clear financial records simplify annual tax reporting and support business valuations during acquisition reviews.


Disclaimer: This guide provides operational information on categorizing software development expenses. RealMRR is not an accounting firm or legal advisor. Tax regulations, including IRC Section 174 and CRA rules, are subject to change. Consult a licensed tax professional or CPA to review your specific tax filings.


Built for indie founders

Know your real profit today.

Connect your payment gateway and cloud bills to get verified profit rankings, automated bookkeeping, and zero guesswork.