Business Metric Impact / 03|7-min read / accounting view

Tech debt impact on COGS: when engineering becomes cost of revenue

The least-discussed financial impact of tech debt is the accounting one. As debt accumulates, more engineering work becomes operationally necessary to keep the service running. Where a company allocates operational engineering to cost of revenue, that work moves from R&D into COGS, and gross margin falls even though total cost has not changed.

The 90-Second Answer

Tech debt raises the share of engineering work that is operational rather than developmental, and companies that allocate operational engineering to cost of revenue then report more of their payroll in COGS. Each percentage point of revenue that moves into COGS is a percentage point off gross margin. The table below shows the gross-profit effect at different revenue levels; on a $100M ARR business, 4 points is $4M of gross profit a year. How many points tech debt moves is specific to each company; there is no published benchmark.

The Accounting Rule

What goes into COGS for a SaaS business

US GAAP and IFRS converge on the principle that cost of revenue includes the costs directly required to deliver the product or service being recognised as revenue. For a SaaS business this typically includes: hosting infrastructure (the cloud bill), data costs (third-party APIs that the service consumes per customer), customer-success and support labour, payment processing, and the portion of engineering labour required to operate the service. The last category is where tech debt enters the calculation.

The judgement call is which engineering activities count as “required to operate” versus “developing new capability”. Activities companies commonly place in cost of revenue include SRE and DevOps work that keeps the service running, customer-specific implementation engineering, and support engineering escalations. New product features and exploratory work sit in research and development. The policy is the company's own, applied consistently and reviewed by its auditor.

The practical effect is that engineering labour is allocated across COGS and opex categories on every accounting period, with the allocation based on activity tracking, surveys, or fixed-ratio assumptions. The auditor reviews the methodology, not the per-engineer activity, but the methodology itself produces the ratio that matters for the gross-margin calculation.

The Tech Debt Connection

How accumulated debt migrates engineering into COGS

Tech debt creates more operational engineering work without creating more developmental work. The ratio shifts. If a team spends 30% of its capacity keeping the service running, then under an allocation policy that follows activity, that share of its payroll belongs in cost of revenue. The work was budgeted as R&D, but its actual character is operational.

The accounting effect is rarely instantaneous because allocation methodologies use surveys or ratios that lag the actual activity by months or quarters. The lag is itself a problem because it masks the underlying deterioration: a CFO who reviews gross margin quarterly may see the margin compress for several quarters before the underlying ratio shift is identified, by which point the tech debt position is several quarters deeper than when it could have been remediated cheapest.

The strongest signal that tech debt is migrating into COGS is the trend of the engineering-cost-as-percentage-of-revenue ratio held against the gross margin trend. If engineering cost in cost of revenue is growing as a percentage of revenue while gross margin compresses, operational engineering is a likely contributor. Watching the two together catches the shift earlier than tracking them separately.

The Tipping-Point Arithmetic

When the COGS impact becomes material

The dollar effect of a gross-margin shift is simply ARR times the points moved. The table runs that for common revenue levels; the drag columns are illustrative, not benchmarks.

ARR1pp drag4pp drag8pp drag
$10M$100K$400K$800K
$50M$500K$2.0M$4.0M
$100M$1.0M$4.0M$8.0M
$500M$5.0M$20.0M$40.0M
$1B$10.0M$40.0M$80.0M

Gross profit lost = ARR x points of drag. The result does not depend on the starting gross margin. Put in your own ARR and your own estimate of the share of revenue that operational engineering has moved into COGS.

The Public-Company View

How analysts read the gross-margin trend

For public SaaS companies, gross margin is one of the most-watched metrics on the income statement. Analysts compare against the company's own historical trend, against the public-comp peer group, and against the company's own management guidance. A gross margin trajectory that deviates from the peer group or from prior guidance triggers analyst questions and, in extreme cases, multiple compression at the stock-price level.

Tech debt is rarely named explicitly in the analyst conversation, but its effects are visible. A SaaS company whose hosting costs are growing faster than revenue is often a company carrying significant tech debt in the architecture (the per-customer cost is not being amortised efficiently). A SaaS company whose support engineering line is growing faster than revenue is often carrying product debt that manifests as support load. The analyst infers from the operational signals what the engineering organisation knows from the inside.

For pre-IPO companies preparing for the public listing, the gross-margin trajectory is one of the most scrutinised aspects of the S-1 financial story. Investors read a deteriorating gross margin in the years before IPO as a question about unit economics. Tech debt remediation that improves gross margin in the pre-IPO window is a lever that founders sometimes recognise only late, when the question is raised in diligence. See the late-stage framing page for the pre-IPO timing-specific treatment.

What Reverses It

Engineering investments that recover gross margin

The COGS-side gross-margin recovery is driven by engineering investments that reduce the operational labour required per unit of revenue. The four highest-leverage categories: infrastructure automation that reduces SRE load, observability investment that reduces incident-response load, multi-tenancy architecture that reduces per-customer integration work, and customer-success tooling that reduces support escalation rates.

Each of these investments is a structural debt remediation pitched as a gross-margin recovery. The CFO who hears “invest in observability” will deflect; the CFO who hears a cost, a number of gross-margin points recovered and a date, each backed by the team's own data, will engage. The translation from engineering activity to gross-margin recovery is the same translation pattern used in the CFO pitch page, applied specifically to the COGS-side of the income statement rather than the opex-side.

The timeline for gross-margin recovery is slower than the timeline for engineering velocity recovery. Velocity can move within weeks; gross margin moves in quarters. The CFO conversation needs to accommodate this asymmetry; promising a one-quarter gross-margin recovery from a tech debt initiative is over-promising and damages credibility for the next ask. The honest commitment is in quarters, with a first checkpoint at the next quarterly close after the work ships.

Cross-Reference

COGS sits inside the business-impact stack

The COGS impact is tightly coupled to the SaaS gross-margin page (the income-statement view of the same effect) and to the burn-rate impact (the cash-flow view). For the tax-vs-accounting distinction with IRC §174 R&D capitalization, see the CapEx vs OpEx page. The CFO pitch includes COGS framing as one of the most persuasive translations.

For the engineering-practitioner view of which architectural patterns most efficiently reduce per-customer operational load (multi-tenancy, infrastructure-as-code, observability stacks), see the sister site technicaldebtcost.com.

Field Notes

Frequently asked questions

Does engineering payroll count as COGS?+

Some of it can. Many SaaS companies classify the cost of engineers whose work is needed to deliver the running service (for example hosting operations, SRE and support engineering) in cost of revenue, and engineers building new capability in research and development. Each company sets and discloses its own allocation policy, so read the cost-of-revenue note in its filings.

Why does tech debt accelerate the COGS shift?+

Tech debt increases the proportion of engineering work that is operational rather than developmental: keeping the system running, debugging issues, performing migrations, handling escalations. Where a company allocates operational engineering to cost of revenue, the worse the debt, the more engineering payroll lands in COGS rather than in operating expenses.

What does this mean for gross margin?+

Engineering cost that moves into COGS lowers gross margin one for one: cost equal to 1% of revenue moving into COGS takes 1 percentage point off gross margin. Operating margin does not change, because the cost was already in operating expenses; only where it sits changes. There is no published benchmark for how many points tech debt typically moves, so size it from your own allocation.

Is the COGS shift visible in financial statements?+

Yes, in the gross margin trend line and in the cost-of-revenue line of the income statement. Because allocation methods often rely on periodic surveys or fixed ratios, the shift can lag the change in actual work, so it may take several quarters to show.

Can tech debt remediation reverse the COGS shift?+

Yes, with effort. The shift back from COGS to opex requires structural improvement: automation that reduces operational engineering load, observability that reduces incident-response load, and platform investment that reduces per-customer integration work. None of these is instant, and gross margin moves on a quarterly reporting cycle, so set the expectation in quarters rather than weeks.

How does this differ from R&D capitalization under IRC §174?+

IRC §174 and §174A are tax rules: from taxable years beginning after 2024, domestic research and software development costs are deductible in the year incurred under §174A, while foreign research is amortized over 15 years. COGS classification is a GAAP financial-reporting question, separate from the tax treatment: COGS affects reported gross margin; §174 and §174A affect cash taxes. See /capex-vs-opex for the tax treatment.

Adjacent Reading