CapEx vs OpEx

hot! 💸 $$$ up front 🔧You fix it On-premises: you own it move PAY AS YOU GO Cloud: Microsoft runs it
Buying servers is a big payment up front, called CapEx. Renting from the cloud is a small monthly bill, called OpEx.

😟 THE PROBLEM

A new bakery must spend all its savings on an oven before selling a single loaf.

😊 THE SOLUTION

Rent instead of buy: small monthly payments (OpEx) instead of one huge one (CapEx).

  • Huge payment on day one✓ Small, regular monthly bill
  • Equipment loses value every year✓ Nothing to own or depreciate
  • Stuck if your needs change✓ Scale up, down or stop any time
🛠️ Solved with: OpEx via the cloud
Try it yourself in the Azure simulator No Azure account needed. Launch a VM and save money 🖥️ Try it ❯
Module 1: Cloud Concepts ⏱ 7 min read Updated 11 Nov 2026

Quick answer

Capital expenditure (CapEx) is spending money up front on physical assets, such as servers or a datacenter, that you own and depreciate over several years. Operational expenditure (OpEx) is ongoing spending on services or products as you use them, billed and deducted in the same period. Cloud computing mostly turns IT from CapEx into OpEx.

Exam objective: 1.1.5 Describe the consumption-based model. (Skills measured as of July 20, 2026)

Start with a question

Should a new bakery buy a 30,000 oven on day one, or rent one monthly until it knows how busy it will be?

Buying the oven means a huge payment before the first loaf is sold. The bakery owns it, but if the business changes direction, the oven is still there, losing value.

Renting means smaller monthly payments, no big risk, and the freedom to upgrade or return it. These are the two ways businesses spend money: CapEx and OpEx.

Explain it like I’m 10

The technical explanation

Capital expenditure (CapEx)Operational expenditure (OpEx)
What it isUp-front spending on physical infrastructure or assetsOngoing spending on services or products
Example in ITBuying servers, storage, networking, building a datacenterCloud subscriptions, pay-as-you-go VMs, SaaS licences
AccountingAsset is depreciated over its useful life (often 3–5 years for IT)Expensed in the period it occurs
Cash flowLarge payment at the startSmaller, regular payments that follow usage
FlexibilityLow. You own fixed capacityHigh. Scale up or down, stop anytime
RiskOver-buying (idle assets) or under-buying (capacity shortage)Uncontrolled usage can grow costs
0k 50k 100k 150k Month 0Month 12Month 24Month 36 CapEx: buy servers up front hardware refresh OpEx: pay monthly for what you use
Illustrative numbers only. CapEx front-loads the spend; OpEx spreads it out and can be switched off.

Why the cloud is OpEx

Because Azure is billed through the consumption-based model, you do not buy the infrastructure. You pay monthly for what you use. That shifts IT spending from CapEx to OpEx, which:

  • removes the big up-front payment,
  • lets costs follow business demand,
  • and avoids being stuck with assets you no longer need.
Architect level Commitments blur the line

Reservations and savings plans are paid like OpEx (monthly or up front) but behave like a commitment: you owe the money whether or not you use the capacity. Finance teams sometimes treat large up-front reservation payments as prepaid expenses spread over the term. For architecture discussions, the useful question is not “CapEx or OpEx?” but “How much flexibility are we buying, and what does it cost?”

Real-world business scenario

Online education

A growing online education start-up

The problem
Investors wanted cash spent on content and marketing, not on server racks, and nobody could predict next year's user numbers.
What they used
All hosting on Azure PaaS services, billed monthly; budgets in Cost Management per product team.
Why that choice
OpEx kept cash free for growth, matched cost to the number of students, and avoided buying hardware that might be too big or too small.
The result
IT costs rose gradually alongside revenue instead of in big steps, and the board could see cost per student each month.

When to use it and when not to

✓ Use it when…

  • **OpEx (cloud)** when demand is uncertain, growing or seasonal.
  • **OpEx** when you want to preserve cash and avoid stranded assets.
  • **CapEx** may make sense for large, stable, long-lived workloads where you can keep owned hardware fully used.

✕ Think twice when…

  • Choosing OpEx without budgets and alerts, because costs can drift upwards unnoticed.
  • Choosing CapEx for a project whose future size is uncertain.
Ready for more?The full lesson adds the technical explanation, when to use it, interview questions and revision notes.

Interview preparation

Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.

Beginner What is the difference between CapEx and OpEx?

Model answer

CapEx is a big up-front purchase of something you own, like buying servers for a datacenter. OpEx is ongoing spending for things as you use them, like paying a monthly cloud bill. Cloud computing is mainly OpEx.

Interviewer follows up

Give a non-IT example.

You

Buying a delivery van is CapEx. Renting a van by the day, or paying a courier per parcel, is OpEx.

Intermediate Why do finance teams often like the OpEx model of cloud?

Model answer

No large up-front cash outlay, costs match actual usage and revenue, no risk of stranded assets if needs change, and spending can be adjusted month by month. It also makes it easier to attribute costs to products or teams.

Experienced developer Is OpEx always better? What would a CFO push back on?

Model answer

Not always. Steady workloads on pure pay-as-you-go can cost more over time than owned hardware, and OpEx is less predictable if engineering does not manage it. Some organisations have capital budgets that are easier to approve than operating budget increases. Reservations and savings plans sit in between, a commitment that buys a discount. The right framing is total cost of ownership and flexibility, not OpEx versus CapEx as an ideology.

Scenario A company must decide whether to spend 500,000 on a new on-premises storage array or move backups to Azure. How does CapEx/OpEx factor in?

Model answer

The array is CapEx, a large immediate cash outlay, a depreciating asset, fixed capacity, and a refresh in five years. Azure Backup and Blob Storage are OpEx, paid monthly by usage, scaling with data, with no hardware to refresh. If cash flow and flexibility matter, OpEx is attractive. The decision should compare five-year TCO including staff, power and space.

Test yourself with exercises

4 original practice questions in the AZ-900 style. Pick your answers, then check them. You will see why each option is right or wrong. Score 75% or more and this topic is marked complete.

Question 1

Question 1 of 4

A company buys new servers for its on-premises datacenter. What type of expenditure is this?

Question 2

Question 2 of 4

Paying a monthly bill for Azure virtual machines based on usage is an example of what?

Question 3

Question 3 of 4 · Select 2

Which TWO statements about operational expenditure (OpEx) are true?

Question 4

Question 4 of 4

A company wants to avoid a large initial investment and only pay for IT resources as the business grows.

Which approach meets this goal?

Quick revision

Key points

  • CapEx = up-front spending on physical assets you own; value depreciates over time.
  • OpEx = ongoing spending on services as you use them; expensed in the same period.
  • On-premises IT is mainly CapEx; cloud is mainly OpEx.
  • OpEx improves flexibility and cash flow; it needs active cost management.
  • The consumption-based model is what makes cloud spending OpEx.

Important terminology

CapEx
Capital expenditure. Up-front spending on physical assets that are owned and depreciated over time.
OpEx
Operational expenditure. Ongoing spending on services or products, expensed in the period it occurs.
Depreciation
Spreading the cost of an asset over its useful life in the accounts, because its value declines.
Cash flow
The timing of money going out and coming in. Big CapEx purchases hit cash flow immediately.

Common mistakes

  • Thinking OpEx is automatically cheaper. It is more flexible, not always cheaper.
  • Mixing up which one cloud represents. Cloud is OpEx.

Exam tips

  • "Buying servers", "building a datacenter", "up-front" all point to CapEx.
  • "Pay as you go", "monthly bill", "no up-front cost" all point to OpEx.

Five quick revision questions

  1. 1.Is buying servers CapEx or OpEx?Show

    CapEx.

  2. 2.Is a monthly Azure bill CapEx or OpEx?Show

    OpEx.

  3. 3.What is depreciation?Show

    Spreading an asset's cost over its useful life as its value declines.

  4. 4.Which model requires a large up-front payment?Show

    CapEx.

  5. 5.Which cloud concept turns IT spending into OpEx?Show

    The consumption-based (pay-as-you-go) model.

Official references

Make it stick: play a quick gameSort It, Match the Pairs, Lightning Round and Who Am I? Earn XP and badges. Play ❯

Finished this lesson? Tick it off. Your progress is saved in this browser.

Next up: High Availability