Why investing more computing power during software development could reduce waste, improve software quality and lower environmental impact over the lifetime of an application.
Artificial intelligence consumes substantial amounts of energy, and its growing adoption is increasing demand for computing infrastructure. According to the International Energy Agency, data centres consumed approximately 415 TWh of electricity worldwide in 2024, with demand projected to reach around 945 TWh by 2030 in its baseline scenario. AI is an important contributor to this growth, although it is not the only one. These figures understandably raise questions about the sustainability of AI, particularly as software developers increasingly use language models and autonomous agents throughout their development processes. Yet I believe the discussion is missing an important perspective. We focus heavily on the energy consumed by AI itself, while paying considerably less attention to the energy, infrastructure and development effort that AI might help us save.
Consider a software platform that processes millions of transactions every day and is expected to operate for another ten years. Improving its efficiency by even a few percentage points could produce substantial cumulative benefits. If we deliberately invest additional AI computing power during development to identify inefficient algorithms, unnecessary data processing and architectural weaknesses, those improvements could continue delivering benefits throughout the platform’s operational lifetime. The same reasoning applies when AI allows us to discover early in a project that certain functionality is unnecessary. Avoiding months of development, testing and maintenance may be considerably more valuable than reducing the number of tokens used during initial analysis. This creates an interesting paradox: using more AI during software development could, under the right circumstances, make the resulting software more sustainable.
The challenge is to establish when this is actually true. Faster development does not automatically mean better software, and faster software does not necessarily consume less energy. A meaningful assessment requires us to consider the complete lifecycle of the software, including the resources consumed during development, the infrastructure needed during operation and the value the software ultimately delivers.
Quick Take: Can AI make software development more sustainable?
Yes, but only when the long-term benefits outweigh the additional resources used by AI during development. AI-assisted software development can reduce waste by challenging unnecessary requirements, improving maintainability and finding inefficiencies in applications that run for years. More tokens, faster code generation or shorter execution times are not, by themselves, evidence of lower emissions. The relevant test is whether measurable energy or carbon savings occur under a comparable workload, including changes in infrastructure capacity and the software’s expected lifetime. Sometimes the greener choice is to optimise a system; sometimes it is not to build a feature at all.
How AI can reduce software waste before development begins
One of the largest sources of waste in software development receives surprisingly little attention in discussions about sustainability. Organisations regularly invest substantial time and money in functionality that ultimately delivers limited value. Requirements are collected, architectures are designed and development teams spend months building applications before users can properly evaluate whether the proposed solution meets their needs. By the time a working product becomes available, important assumptions may already have proven incorrect. The resulting waste extends beyond development costs, because unnecessary functionality also introduces complexity, dependencies, security obligations and maintenance requirements. Even software that is rarely used can continue consuming infrastructure resources and organisational attention for years.
AI provides an opportunity to change this process by making practical experimentation considerably easier. Development teams can create working prototypes much earlier, allowing users to experience proposed functionality rather than evaluate abstract requirements and designs. Instead of spending months discussing what an application should do, teams can explore several alternatives and observe which solution actually supports the intended work. Consider an energy company planning an extensive dashboard for monitoring thousands of distributed energy assets. A working prototype might reveal that operational users are less interested in detailed visualisations than in receiving reliable notifications when an installation requires attention. That insight could eliminate much of the originally proposed functionality and lead to a smaller, more effective application.
The sustainability benefit comes from making better decisions before committing to full-scale development. Software that is never built does not require production infrastructure, ongoing maintenance, security updates or eventual replacement. However, this benefit is not automatic. If organisations simply use AI to generate more prototypes and features without evaluating their usefulness, they may increase rather than reduce waste. The essential discipline is to use experimentation to challenge assumptions, remove unnecessary requirements and stop initiatives that do not demonstrate sufficient value. AI makes this process easier and potentially less expensive, but the decision to build less remains a human responsibility.
Can extra AI computation reduce energy use over a software lifetime?
A second opportunity concerns software that remains operational for long periods and performs large numbers of repetitive operations. Integration platforms, industrial IoT systems, data-processing applications and other business-critical systems often execute the same functions millions of times throughout their lifetime. Small inefficiencies in these functions can accumulate into substantial resource consumption. An unnecessary database query, an inefficient transformation or a redundant API request may seem insignificant during development, but becomes more relevant when repeated continuously across thousands of users, devices or transactions.
Traditionally, performance optimisation has been constrained by development time, available expertise and the difficulty of evaluating alternatives. Developers must understand the existing implementation, identify bottlenecks, investigate possible improvements and verify that changes preserve the required functionality. AI can support this work by analysing large codebases, identifying inefficient patterns, proposing alternative implementations and helping developers compare their performance. Multiple AI agents can investigate different approaches, generate tests and evaluate potential improvements, although reliable benchmarks and independent verification remain essential.
An important example is AlphaDev, developed by Google DeepMind and described in a 2023 publication in Nature. The researchers used reinforcement learning to discover improved sorting algorithms, achieving performance improvements of up to 70% for certain short sequences and approximately 1.7% for larger sequences in the reported experiments. These algorithms were subsequently incorporated into the LLVM libc++ sorting library. This is significant because sorting is a fundamental operation used throughout software systems. Improving a widely used library creates opportunities for benefits across many applications without requiring every development team to rediscover the optimisation independently.
The AlphaDev research demonstrates that AI can discover meaningful algorithmic improvements, but it does not establish that electricity consumption decreases by the same percentage as execution time. Faster execution, processor utilisation and actual energy consumption are related but different measurements. Nevertheless, the underlying opportunity is important. When an optimisation improves a frequently executed operation, the initial development effort may be justified by benefits accumulated over millions or billions of future executions. For long-lived software, spending additional AI resources during development may therefore be a sensible engineering investment, provided the resulting improvement can be demonstrated and its operational consequences measured.
Why faster software does not always mean lower energy consumption
Software determines how computing infrastructure is used. Its architecture influences processor demand, memory consumption, storage operations, network traffic and the amount of capacity required to process a workload. Inefficiencies can occur at several levels, from individual functions to the interaction between distributed applications. A data platform might repeatedly transfer information between services when calculations could be performed closer to the source. An integration platform might process complete datasets when downstream systems require only a small subset. Applications may generate excessive logging, maintain unnecessary background processes or repeatedly retrieve information that could be cached more effectively.
AI can help developers investigate these problems more systematically. By analysing source code, execution behaviour and infrastructure configurations, AI-assisted tools can suggest alternative implementations and help evaluate their consequences. The underlying engineering techniques are not new. For a broader view of the choices involved, see Sustainability by Design: Making Software Energy-Efficient. Profiling, performance testing, query optimisation and architectural analysis have existed for decades. What changes is the potential amount of investigation that can be performed within a given development budget. AI may allow teams to explore alternatives that would previously have been considered too time-consuming, particularly in large systems where understanding the relationships between components is difficult.
There is an important distinction, however, between improving efficiency and reducing environmental impact. A platform that processes transactions using 20% less processor time may handle more work with the same infrastructure, but that does not necessarily mean its absolute electricity consumption falls. If the organisation immediately uses the available capacity for additional workloads, total consumption could remain unchanged or even increase. This rebound effect means that sustainable performance engineering requires operational decisions alongside technical optimisation. Real environmental benefits become more tangible when efficiency improvements allow organisations to reduce provisioned capacity, retire infrastructure or avoid future expansion while maintaining the necessary reliability and availability.
How code quality and maintainability affect software sustainability
Performance is only one aspect of sustainable software development. Poor software quality creates waste through defects, corrective maintenance, repeated testing, operational incidents and premature replacement. Applications with weak architectures can become increasingly expensive to maintain, while accumulated technical debt may eventually make substantial redevelopment unavoidable. AI can support developers by analysing code, generating additional test cases, investigating potential security weaknesses and examining changes for unintended consequences. These capabilities can be particularly useful when maintaining complex systems whose original design decisions are poorly documented or understood.
AI-assisted development also creates opportunities to improve documentation, simplify implementations and identify obsolete functionality. These activities rarely attract the same attention as generating new features, but they can have substantial long-term value. A system that is easier to understand and modify may remain useful for longer, reducing the need for repeated redevelopment and unnecessary infrastructure changes. However, the environmental benefit remains conditional. More generated tests do not automatically produce better quality, and AI-generated code can introduce defects or unnecessary complexity when accepted without sufficient review. AI should therefore strengthen established engineering practices rather than replace independent testing, architectural judgement and human accountability. This is also the argument behind AI Coding Tools Are Only Exposing Your Weak Software Engineering Discipline.
The objective should be to develop software that remains reliable, maintainable and efficient throughout its expected lifetime. Using AI to investigate a complex component thoroughly may be more valuable than using the same resources to generate additional functionality. This requires a shift in how productivity is understood. I explored a related distinction between activity and actual value in AI productivity does not come from watching better answers appear. The number of lines of code produced or tasks completed is a poor measure of the long-term value of software. What matters is whether the resulting system performs its intended function reliably, efficiently and without creating unnecessary maintenance obligations.
Does AI coding assistance really improve developer productivity?
Research into AI-assisted software development shows considerable variation in productivity outcomes. A study involving Microsoft, Accenture and another large organisation examined 4,867 software developers and found an average increase of 26.08% in completed tasks among developers with access to AI coding assistance. The results were encouraging, particularly for developers with less experience. However, a separate randomised controlled study published by METR in July 2025 found that experienced open-source developers working on familiar, mature repositories took approximately 19% longer to complete tasks when using the AI tools available during the experiment. The studies examined different populations, tools and development environments, so their findings should not be treated as directly comparable measurements of the same activity.
These results illustrate why claims about AI productivity require context. Generating an initial implementation is different from integrating a change into a complex production system with extensive dependencies and implicit requirements. AI may accelerate coding while increasing the effort required for review, correction or integration. Similarly, a development team may complete more tasks without necessarily delivering more useful functionality. If AI makes it easier to produce unnecessary features, the apparent productivity improvement may result in additional maintenance and infrastructure obligations rather than greater value.
For sustainability, the distinction is particularly important. Faster development is valuable when it allows organisations to validate ideas earlier, improve quality or reduce the resources required to deliver useful software. It is less valuable when it simply increases the volume of software produced. The relevant question is therefore not how many additional features a team can deliver with AI, but whether the team can deliver better outcomes with fewer resources over the full lifecycle.
What can we learn from developers using billions of AI tokens?
Software development is gradually moving towards workflows in which developers use multiple AI agents continuously. Rather than asking occasional questions or generating individual functions, developers can delegate analysis, implementation, testing and review to specialised agents. Some experiments involve substantial numbers of parallel agents and very large token consumption. These approaches demonstrate how much computational effort can now be directed towards engineering problems, but the amount of AI processing used tells us remarkably little about the quality of the outcome.
A developer who consumes a billion tokens has demonstrated the ability to consume a billion tokens. That is not yet evidence of productivity, engineering quality or sustainability. The interesting question is whether those tokens produced an improvement that would otherwise have been difficult or expensive to achieve. Extensive AI processing may be justified when it helps discover a better algorithm, analyse a complex legacy system or identify defects that could have serious operational consequences. It is considerably harder to justify when agents repeatedly generate alternative implementations without meaningful evaluation or produce large amounts of code that nobody needs.
This is why AI consumption should be treated as an engineering input rather than a performance indicator. Organisations already manage development budgets, infrastructure capacity and testing resources. AI processing deserves the same discipline. The objective is not to minimise every token, but to allocate computing resources where they have the greatest likelihood of improving the final result. In some cases, that may involve intensive analysis and repeated experimentation. In others, a simple implementation and a limited amount of AI assistance will be entirely sufficient.
How to calculate the energy payback of AI-assisted optimisation
The central sustainability question is whether the additional resources consumed during AI-assisted development are outweighed by the benefits achieved during operation. This can be illustrated with a simple hypothetical calculation. Suppose an AI-assisted optimisation process requires an additional 200 kWh of electricity during development. If the resulting software consumes 2 kWh less electricity per day under an equivalent workload, the initial electricity investment would be recovered after approximately 100 days. If the software continues operating for several years, the cumulative electricity savings could become substantial.
Now consider the same optimisation effort producing a saving of only 0.05 kWh per day. Recovering the initial 200 kWh would take approximately 4,000 days, or almost eleven years. The difference demonstrates why execution frequency, expected software lifetime and the size of the improvement are critical to the assessment. These figures are illustrative rather than measured project results, and they do not include the emissions associated with hardware manufacturing, variations in electricity generation or additional infrastructure requirements. They nevertheless show why a development investment that is sensible for a heavily used platform may be difficult to justify for a small application with a short expected lifetime.
A more complete assessment requires us to distinguish electricity consumption from carbon emissions. The Software Carbon Intensity specification, published as ISO/IEC 21031:2024, provides a methodology for evaluating software-related emissions by considering operational electricity, the carbon intensity of that electricity and the embodied emissions associated with hardware. These factors are expressed relative to a functional unit, such as a transaction, a quantity of processed data or a period of service delivery. This makes it possible to compare alternatives based on the useful work they perform rather than on infrastructure consumption alone.
The same principle should apply when evaluating AI-assisted optimisation. We need to understand the resources consumed during development, the efficiency improvement achieved, the expected number of future executions and the operational changes required to realise the benefit. Where reliable electricity measurements are unavailable, resource utilisation and infrastructure capacity can provide useful indicators, although they should not be presented as direct measurements of energy consumption. The assessment should also consider whether additional capacity will actually be removed or simply reused for more processing.
A practical measurement method: from baseline to verified savings
Before claiming that an AI-assisted change has reduced electricity use or emissions, I would ask for five pieces of evidence:
- Define the functional unit and baseline. Choose a comparable unit of useful work, such as 10,000 transactions, and record energy use, throughput, latency and reliability for the original implementation.
- Measure the additional development effort. Estimate or measure the electricity associated with AI inference, repeated experiments, testing and any extra infrastructure used to deliver the change. Clearly distinguish measurements from estimates.
- Repeat a representative workload. Compare before and after under consistent traffic, data volumes, hardware, configuration and service-level requirements. Use direct power measurements where possible; CPU utilisation alone is not an energy measurement.
- Calculate operational savings and payback. Compute the electricity saved per functional unit and project it over a justified workload and remaining lifetime. The simple electricity payback is additional development kWh divided by verified daily kWh savings, provided those savings are positive.
- Check the real-world environmental outcome. Verify whether infrastructure capacity or actual electricity demand falls, whether demand rebounds, and how the timing and carbon intensity of electricity plus relevant embodied hardware emissions affect the result. Use the Software Carbon Intensity approach when making carbon claims.
For example, an extra 200 kWh spent on AI-assisted optimisation and a verified saving of 2 kWh per day implies an electricity payback of 100 days. It does not imply a 100-day carbon payback: that requires separate assumptions about when and where the electricity is consumed and what hardware is involved. If the claimed savings disappear under a representative workload, there is no demonstrated environmental payback.
Which software systems benefit most from AI optimisation?
Not every application deserves the same amount of AI-assisted analysis and optimisation. For a short-lived prototype, the priority should be to validate assumptions quickly and avoid unnecessary development. Spending substantial computing resources on detailed performance improvements would rarely be justified before the team has established whether the proposed functionality is useful. For a relatively small business application, AI may deliver more value through improved maintainability, test coverage and development efficiency than through extensive energy optimisation.
The priorities change for software that processes large volumes of transactions or operates continuously for many years. Integration platforms, industrial monitoring systems, data-processing pipelines and shared software libraries are particularly interesting because relatively small improvements can affect large numbers of executions. In these environments, it may be reasonable to invest considerably more AI resources during development to investigate alternative algorithms, optimise data processing and verify performance under representative workloads. The expected lifetime of the software becomes an important factor in determining how much optimisation effort is justified.
There is also a difference between improving software that already exists and preventing unnecessary software from being developed. Both approaches can contribute to sustainability, but they address different sources of waste. Performance optimisation reduces the resources required to perform useful work, while early experimentation reduces the likelihood of spending resources on functionality that delivers insufficient value. A mature engineering organisation should consider both approaches rather than treating sustainability exclusively as an infrastructure or cloud-efficiency issue.
Why sustainable software depends on architecture and management
Many sustainability improvements require decisions beyond the development team. Engineers may identify an opportunity to reduce infrastructure requirements, but implementing that change can involve operational procedures, capacity planning, service agreements and reliability requirements. A product team may discover that a requested feature adds little value, but removing it requires agreement from the business owner. An AI agent may propose an architecture that performs better while introducing additional complexity, security risks or dependence on a particular technology provider.
These trade-offs cannot be resolved by performance benchmarks alone. A system that consumes fewer resources but no longer meets its availability requirements is not necessarily a better solution. Removing redundant infrastructure may reduce electricity consumption while weakening resilience. Reducing logging may lower storage requirements but create problems during security investigations or operational incidents. Sustainable software engineering therefore requires organisations to balance efficiency with reliability, maintainability, security and long-term flexibility.
AI can support these decisions by helping teams investigate alternatives and understand their consequences. It cannot take responsibility for the resulting operational risks. That responsibility remains with the people designing, operating and governing the system. If sustainability is to become a meaningful engineering objective, it needs to be incorporated into architectural decisions, product priorities and operational management rather than treated as a separate reporting exercise.
From faster development to better engineering decisions
The increasing availability of AI creates an opportunity to reconsider how development capacity is used. If developers can produce initial implementations faster, organisations can choose to use that additional capacity to deliver more features or invest more effort in understanding requirements, improving architecture, strengthening quality and optimising existing systems. Both may create value, but the second option has received comparatively little attention in the debate about AI productivity.
I believe this is where some of the most interesting opportunities lie. Activities that were previously postponed because they required too much manual effort may become more practical. Developers can investigate alternative designs, analyse legacy systems more thoroughly and evaluate performance improvements before inefficiencies become embedded in production environments. AI can also make it easier to revisit earlier decisions and remove complexity that no longer serves a useful purpose.
The risk is that organisations respond to cheaper software generation by becoming less selective about what they build. If producing code becomes easier, the temptation to add functionality may increase even when its value is uncertain. Without discipline, AI could accelerate the accumulation of technical debt and operational complexity rather than reduce it. The real improvement comes when organisations use AI to make better decisions about functionality, architecture and long-term operation.
Conclusion: the lifetime impact matters more than the tokens
The environmental impact of AI is real and should remain part of every serious discussion about its adoption. Growing demand for computing infrastructure creates pressure on electricity systems, hardware supply chains and the environment. We should not assume that every application of AI will eventually compensate for the resources it consumes. At the same time, evaluating AI exclusively through the electricity required during development gives us an incomplete picture of its potential contribution to sustainability.
AI can help organisations validate ideas earlier, avoid unnecessary functionality, improve software quality and discover more efficient implementations. For applications that remain operational for years and process large workloads, improvements achieved during development may continue delivering benefits long after the initial AI processing has finished. Whether those benefits outweigh the additional resources consumed depends on the quality of the optimisation, the frequency with which it is used and the operational decisions made afterwards.
This is why I believe we should move away from treating token consumption as an isolated measure of environmental responsibility. Using a million additional tokens to eliminate an inefficiency that would otherwise consume resources for the next ten years may be a sensible investment. Using the same resources to generate functionality that nobody needs probably is not. The difference lies in the engineering decisions and their measurable consequences.
Ultimately, sustainable software development should be judged by how much useful value we deliver with the resources consumed throughout the complete lifetime of the software. Sometimes achieving that will require us to use more AI during development rather than less.
References
International Energy Agency (2025). Energy and AI.
https://www.iea.org/reports/energy-and-ai/executive-summary
Mankowitz et al. (2023). Faster sorting algorithms discovered using deep reinforcement learning. Nature.
https://www.nature.com/articles/s41586-023-06004-9
Cui et al. (2026). The Effects of Generative AI on High-Skilled Work: Evidence from Three Field Experiments with Software Developers. Management Science.
https://doi.org/10.1287/mnsc.2025.00535
METR (2025). Measuring the Impact of Early-2025 AI on Experienced Open-Source Developer Productivity.
https://metr.org/blog/2025-07-10-early-2025-ai-experienced-os-dev-study/
ISO/IEC 21031:2024. Software Carbon Intensity (SCI) specification.
https://www.iso.org/standard/86612.html
