Federal research · Special topics
Software development
Software is a business component like any other: a team building new software qualifies when it resolves technical uncertainty through a process of experimentation. Software sold to customers, or used to let customers interact with the company, gets the standard four-part test. Software for the company's own back office faces an extra test. This page covers how the four-part test applies to software, the exclusions that matter most for development teams, and the Form 6765 reporting.
At a glance
- Business component
- Computer software is listed in the statutory definition of a business component [1]
- Technological in nature
- Computer science is one of the hard sciences the information sought must rely on [1][2]
- After commercial release
- Activities after the component is ready for commercial sale or use are excluded, including debugging flaws [2]
- Internal-use software
- Software for the taxpayer's own general and administrative functions must also meet the high threshold of innovation test [2]
- Deduction
- Software development costs are research or experimental expenditures under §174A(d)(3) [3]
- Form 6765
- Section G column 49(e) asks for the software type of each software business component [4]
The rule, explained
Software qualifies on the same terms as hardware. The team must be developing a new or improved function, performance, reliability or quality; the uncertainty must be about capability, method or appropriate design; the information sought must rest on computer science or another hard science; and substantially all the work must be a process of experimentation: forming hypotheses, designing alternatives, testing them through modeling, simulation or trial and error, and refining.
In practice, qualifying software work looks like architecture decisions with no known answer: a new data structure to meet a latency target, an algorithm whose accuracy cannot be predicted, a concurrency design that might deadlock. Writing code to a settled design, configuring a vendor product, building user-interface screens with known patterns, data migration and routine maintenance usually do not qualify on their own, although they can be part of a larger qualifying component if the 80% substantially-all test is still met.
Timing matters. Once software meets the company's basic functional and economic requirements or is ready for release, further work is after commercial production, and the regulations list debugging flaws in the component among excluded post-production activities. A new version with new uncertainty starts a new development effort. Adapting existing software to a particular customer's needs is excluded, but the exclusion does not apply merely because a component is built for a specific customer.
The biggest dividing line is who the software is for. Software sold, licensed or offered to customers, and software that lets third parties interact with the company's systems, is tested under the ordinary rules. Software built for the company's own general and administrative functions, such as finance, HR or support services, is internal-use software and must also clear a much higher bar. The internal-use software page covers that test.
Statutory and regulatory detail
IRC §41(d)(2)(B) includes computer software in the definition of a business component, and §41(d)(1) requires research undertaken to discover information that is technological in nature, intended to be useful in developing a new or improved business component, with substantially all activities constituting elements of a process of experimentation relating to function, performance, reliability or quality [1]. Treas. Reg. §1.41-4(a)(4) treats information as technological in nature if the process of experimentation fundamentally relies on principles of the physical or biological sciences, engineering or computer science [2].
§41(d)(4)(A) through (C) exclude research after the beginning of commercial production, adaptation of an existing business component to a particular customer's requirement, and duplication [1]. Treas. Reg. §1.41-4(c)(2)(i) treats activities as after commercial production once the component is ready for commercial sale or use or meets the taxpayer's basic functional and economic requirements, and §1.41-4(c)(2)(ii)(F) deems debugging flaws in a business component to occur after commercial production; §1.41-4(c)(3) provides that the adaptation exclusion does not apply merely because a component is intended for a specific customer [2]. §41(d)(4)(E) excludes internal-use software except as provided in regulations, and Treas. Reg. §1.41-4(c)(6) supplies those rules for taxable years beginning on or after October 4, 2016 [1] [2].
§174A(d)(3) treats any amount paid or incurred in connection with the development of any software as a research or experimental expenditure, so domestic software development costs are deductible from 2025 [3]. The Instructions for Form 6765 require column 49(e) of Section G to identify each software business component as internal use software, dual function software, non-internal-use software or excepted from internal-use treatment [4], and the printed form carries the column in Section G [5].
Tax-year applicability
Which years each rule applies to, and the law that set it.
| Tax years | Rule | Authority |
|---|---|---|
| Tax years beginning on or after Oct. 4, 2016 | Internal-use software rules of Treas. Reg. §1.41-4(c)(6) apply. | Treas. Reg. §1.41-4(e) [2] |
| Tax years beginning after Dec. 31, 2024 | Domestic software development costs deductible under §174A. | IRC §174A(d)(3) [3] |
| Tax years beginning after Dec. 31, 2025 | Section G required, with software type in column 49(e), unless an exception applies. | Instructions for Form 6765 [4] |
Worked example
Larkspur Route Systems · Route-optimization software for freight carriers, Tennessee · illustrative figures, not a real taxpayer.
Larkspur sells a hosted route-planning product. In 2025 its 22 engineers worked on five efforts. The example classifies each and shows which time goes into QREs. Figures are illustrative; the qualifying efforts are assumed to meet the 80% substantially-all test on their own records.
Larkspur Route Systems: Software development
- Real-time re-routing engine: new algorithm to re-plan 5,000 stops in under two seconds; three approaches prototyped and benchmarked: $1,100,000 of wages
- Customer portal letting shippers book and track loads (lets third parties initiate functions): new caching design tested under load: $420,000
- Post-release bug fixing on version 6: $260,000
- Configuring the product for a new carrier's existing data feeds: $180,000
- Internal billing system rewrite (finance function): $300,000
| Step | Item | Amount |
|---|---|---|
| Qualifies | Re-routing engine: technical uncertainty, alternatives tested | $1,100,000 |
| Qualifies | Customer portal: not internal-use; uncertainty in caching design | $420,000 |
| Excluded | Bug fixing after release: after commercial production | $260,000 |
| Excluded | Carrier configuration: adaptation, no technical uncertainty | $180,000 |
| Test further | Billing rewrite: internal-use; needs the high threshold test | $300,000 |
| F 42 | Wage QREs from software (before the billing system) | $1,520,000 |
Common preparer mistakes
- Claiming every engineer's time on the theory that all coding is experimentation.
- Including post-release bug fixes and maintenance, which the regulations treat as after commercial production.
- Treating back-office systems as ordinary software without applying the internal-use rules.
- Including product managers, designers and QA staff without showing their work is engaging in, supervising or directly supporting qualified research.
- Leaving Section G column 49(e) blank for software components once Section G is required.
IDR and audit red flags
The document requests and questions examiners actually send on this topic, with what weak and strong support look like.
IDR request: For each software business component, describe the technical uncertainty at the outset, the alternatives considered, how they were evaluated, and the results, and provide the design documents, tickets and test records supporting the description.
- Weak support
- Sprint names and story points with a general statement that development involved uncertainty.
- Strong support
- Design documents, architecture decision records, benchmark results and tickets showing hypotheses, tested alternatives and outcomes.
IDR request: Identify the date each software business component was released or ready for commercial use, and explain how activities after that date were excluded from QREs.
- Weak support
- Full-year engineering payroll for products that shipped early in the year.
- Strong support
- Release dates from the deployment system, and time records split between development of new versions and maintenance.
IDR request: For each software business component, state whether it was developed primarily for internal use, as dual function software, or for sale, lease, license or third-party interaction, and explain the basis for the classification.
- Weak support
- All software treated as commercial without analysis.
- Strong support
- A classification memo per component, prepared at the start of development, consistent with Section G column 49(e).
Bate Levina Meylan and Chua's IDR guides: What an IRS IDR is · How to respond to R&D IDRs · Common R&D IDR requests
Where it shows up on Form 6765
Each section below links to its line-by-line walkthrough.
FAQs
Does agile development qualify as a process of experimentation?
Agile is a way of organizing work, not a test the IRS applies. Sprints can contain a process of experimentation if the team is evaluating alternatives to resolve technical uncertainty and records it. They can also be routine feature delivery. The documentation, such as design decisions, prototypes, benchmarks and failed approaches, is what shows which.
Is bug fixing ever qualified research?
Debugging flaws in a business component after it is ready for commercial use is deemed to occur after commercial production under Treas. Reg. §1.41-4(c)(2)(ii)(F) and is excluded. Testing and fixing during development, before the component meets its functional and economic requirements, is part of the development process and can qualify.
Is a SaaS product internal-use software?
Generally not, if the software is developed to let customers initiate functions or review data on the taxpayer's system. Treas. Reg. §1.41-4(c)(6)(iv) treats that software as not developed primarily for internal use. Back-end administrative pieces used only for the company's own finance, HR or support functions are internal-use.
Can we claim cloud costs for software development?
Amounts paid for the right to use off-premises computers owned and operated by others, where the company is not the primary user, can be QREs on line 44 if used in qualified research. Development and test environments for qualifying components are the candidates; production hosting is not. The computer rental page covers the conditions.
How should we document software research?
Use the records engineers already create: design documents, architecture decision records, tickets, pull requests, test and benchmark results, and post-mortems of failed approaches, linked to business components. Time records by component let wages be allocated. Narrative written years later without these records is a common reason software claims are reduced.
Official sources
Primary authority only. Court opinions are cited only where we read the opinion.
Statutes
[1] Statute
26 U.S.C. §41, Credit for increasing research activitiesU.S. Code (Cornell Legal Information Institute)
Accessed November 9, 2026
[3] Statute
26 U.S.C. §174A, Domestic research or experimental expendituresU.S. Code (Cornell Legal Information Institute)
Accessed November 9, 2026
Treasury regulation
[2] Treasury regulation
Treas. Reg. §1.41-4, Qualified research for expenditures paid or incurred in taxable years ending on or after December 31, 2003Electronic Code of Federal Regulations (eCFR)
Accessed November 9, 2026
IRS forms and instructions
[4] IRS form or instructions
Instructions for Form 6765, Credit for Increasing Research Activities (Rev. December 2025)Internal Revenue Service
Accessed November 9, 2026
[5] IRS form or instructions
Form 6765, Credit for Increasing Research Activities (Rev. December 2024; the instructions call it the January 2025 revision)Internal Revenue Service
Accessed November 9, 2026
Research methodology
- Researched by
- Bate Levina Meylan and Chua Research
- Last verified
- November 9, 2026
- Primary sources checked
- 5
Every rule on this page was read in the Internal Revenue Code, Treasury regulations, the current Forms 6765 and 8974 and their instructions, and the IRS revenue procedures, audit techniques guides and LB&I directives cited. Tax Court opinions were read in full from the court's DAWSON system. Anything we could not confirm is tagged for verification.
Related research
Bate Levina Meylan and Chua audit defense
Your engineering tools already hold the evidence.
Bate Levina Meylan and Chua ties design docs, tickets and releases to the business components in a filed claim, so software QREs can be supported from records the team already keeps.
