AWS Builder Center
Understanding AWS Cloud Costs: A Practical Guide to Analysing Spending with AWS Cost Explorer

Understanding AWS Cloud Costs: A Practical Guide to Analysing Spending with AWS Cost Explorer

Learn how to use AWS Cost Explorer to analyse cloud spending, identify cost drivers, understand usage patterns, forecast expenses, and make informed decisions to optimise AWS costs.

Introduction

One of the advantages of cloud computing is the ability to access computing resources without purchasing and maintaining physical infrastructure. However, the flexibility of the cloud also introduces a challenge: understanding how much those resources cost and what drives the spending.
As businesses deploy applications, store data, and run workloads on Amazon Web Services (AWS), their cloud expenses can change over time. A service that initially costs very little may become a significant part of the monthly bill as usage increases. Resources that are no longer needed may also continue generating charges if they are not properly managed.
This makes cost visibility an important part of cloud management.
AWS provides several tools to help customers understand and manage their cloud expenditure. One of these is AWS Cost Explorer, a cost management tool that helps users analyse historical spending, examine usage patterns, identify cost drivers, and estimate future costs.
In this article, we will explore how AWS Cost Explorer works, its key features, how it can support cost investigations, and how it fits into a broader cloud cost management strategy.

1. What Is AWS Cost Explorer?

AWS Cost Explorer is a tool within AWS Billing and Cost Management that helps customers visualise, understand, and analyse their AWS costs and usage.
Think of it as a financial dashboard for your AWS environment.
Rather than looking at a single monthly bill and trying to work out where the money went, Cost Explorer allows you to examine spending across different services, regions, linked accounts, usage types, and other dimensions.
For example, you can use it to answer questions such as:
  • How much did we spend on AWS last month?
  • Which AWS service accounts for the largest portion of our spending?
  • Why did our EC2 costs increase?
  • Are our storage costs growing?
  • Which AWS Region contributes most to our expenditure?
  • How much might we spend next month if our current usage continues?
These insights can help businesses make more informed decisions about their cloud infrastructure and spending.

2. Getting Started with AWS Cost Explorer

AWS Cost Explorer is accessed through the AWS Management Console.
To get started:
  1. Sign in to the AWS Management Console.
  1. Open Billing and Cost Management.
  1. Navigate to Cost Explorer.
  1. Select the option to enable Cost Explorer if it has not already been enabled.
There are a few important things to understand before using it.
Enabling Cost Explorer is a one-time decision. According to AWS documentation, once Cost Explorer has been enabled, it cannot be disabled.
You also cannot enable it through an API. Initial activation must be completed through the Billing and Cost Management console.

How much historical data is available?

When Cost Explorer is enabled, AWS prepares your cost and usage data for the current month and up to the previous 13 months. It also calculates forecasts for future spending.
The forecast period depends on the Cost Explorer experience being used. AWS documentation describes forecasts of up to 12 months in some experiences and up to 18 months in the standard Cost Explorer experience.
The data is not updated in real time. AWS updates Cost Explorer data at least once every 24 hours, although some data may take longer to become available after initial activation.

Does Cost Explorer cost anything?

The Cost Explorer interface in the AWS Management Console is available at no additional charge.
However, using the Cost Explorer API is chargeable. AWS currently charges $0.01 per paginated API request.
For someone learning AWS or managing costs through the console, the standard interface is a useful place to begin.

3. Key Features of AWS Cost Explorer

Cost Explorer provides several features that help users understand their cloud spending.

A. Cost and Usage Visualisation

One of the most useful features of Cost Explorer is its ability to present cost and usage information through visual charts and tables.
Instead of examining individual billing line items, users can view spending patterns over selected periods.
For example, consider the following fictional monthly spending figures:
Month
AWS Spending
January
$25
February
$32
March
$48
April
$75
These figures show a steady increase in monthly expenditure.
A business looking at this trend may want to investigate what changed between January and April.
Did the number of running EC2 instances increase? Was more data stored in Amazon S3? Did application traffic grow? Were additional services introduced?
The visualisation does not automatically explain why costs increased, but it gives users a starting point for further investigation.

B. Filtering and Grouping Costs

Cost Explorer allows users to filter and group their spending to understand where costs originate.
You can filter costs by dimensions such as:
  • Service: Identify how much you spend on services such as Amazon EC2, Amazon S3, and Amazon RDS.
  • Region: Compare spending across different AWS Regions.
  • Linked Account: Examine costs associated with individual accounts in an AWS organisation.
  • Usage Type: Investigate specific types of resource consumption.
  • Purchase Option: Compare On-Demand, Reserved Instance, and Savings Plans usage where applicable.
  • Tags: Organise and examine costs based on resource tags.
For example, suppose a company notices that its AWS spending has increased significantly.
It could group its costs by service to identify which service contributes most to the increase.
If EC2 appears to be responsible, the company can filter the report to show only EC2 costs. It can then examine usage types, Regions, and other available dimensions to investigate further.
This makes it easier to move from a general observation, such as "our AWS bill is increasing", to a more specific question, such as "which EC2 usage category is contributing to the increase?"

C. Cost Forecasting

Cost Explorer also provides cost forecasts based on historical spending and usage patterns.
Forecasting helps businesses estimate how much they may spend in the future if existing trends continue.
For example, if a company has consistently spent around $500 monthly on AWS and its usage has been increasing, Cost Explorer may project a higher amount for an upcoming month.
This information can help teams:
  • Plan cloud budgets.
  • Estimate future infrastructure expenses.
  • Identify potentially unexpected spending increases.
  • Review whether current usage aligns with financial expectations.
However, a forecast is an estimate, not a guaranteed future bill.
Actual costs may differ because of changes in workloads, resource consumption, pricing, architecture, or business activity.

D. Asking Cost Questions in Natural Language

Cost Explorer has also introduced natural-language cost analysis powered by Amazon Q Developer.
This means users can ask questions about their AWS costs and usage using everyday language rather than relying entirely on manual filters and report configurations.
For example, a user might ask:
  • Which AWS service cost the most last month?
  • How has my EC2 spending changed over the last three months?
  • Which Region has the highest AWS expenditure?
  • Why did my spending increase compared with the previous month?
Users can also select suggested prompts provided within the interface.
Cost Explorer can then generate relevant visualisations and adjust filters, groupings, or date ranges based on the question.
This makes cost analysis more accessible, particularly for users who are still learning how to navigate the different cost dimensions.
It is important to remember that natural-language analysis helps users explore billing information. It does not replace the need to verify findings and understand the underlying resources.

E. Preconfigured Reports

Cost Explorer provides reports that help users examine common areas of AWS spending without having to build every report from scratch.
Depending on the Cost Explorer experience and available data, these can include views such as:
  • Monthly costs by AWS service.
  • Costs by linked account.
  • Daily costs.
  • EC2 running hours.
  • AWS Marketplace costs.
These reports provide a useful starting point for routine cost reviews.
For example, a team responsible for cloud infrastructure could review its monthly service costs to identify changes and investigate services that have become more expensive.

F. Comparing Costs Across Different Periods

Another useful feature is the ability to compare costs across different time periods.
A business can compare its current month's spending with the previous month or examine how its expenditure has changed over several months.
This helps answer questions such as:
  • Did our AWS spending increase or decrease?
  • Which service experienced the biggest change?
  • Are our infrastructure costs growing consistently?
  • Did a recent change in resource usage affect our expenditure?
Cost comparison is especially useful when reviewing the financial impact of infrastructure changes.
For example, after increasing the number of EC2 instances supporting an application, a business can compare its spending before and after the change.

G. Reserved Instance and Savings Plans Recommendations

Cost Explorer can also provide recommendations for Reserved Instances and Savings Plans.
These recommendations help users identify opportunities to reduce costs when their workloads have predictable or consistent usage patterns.
Reserved Instances provide discounted pricing in exchange for committing to specific usage terms for eligible services.
Savings Plans offer flexible pricing benefits in exchange for committing to a consistent amount of eligible compute usage, measured in dollars per hour, over a one- or three-year term.
Cost Explorer uses historical usage patterns to generate recommendations based on available options and assumptions.
For example, if a business consistently uses a certain amount of eligible compute capacity, Cost Explorer may identify a potential saving from committing to a Savings Plan.
However, recommendations should be evaluated carefully.
A company should consider its future workload requirements, expected usage, flexibility needs, and commitment period before making a purchase.
The recommendations do not automatically purchase a plan or optimise the infrastructure. The customer must review the recommendation and decide whether it makes financial sense.

4. A Practical Cost Investigation Scenario

To understand how Cost Explorer can be useful in a business environment, consider the following fictional scenario.
Northstar Digital Services is a growing company that hosts its applications and business systems on AWS.
Its infrastructure uses:
  • Amazon EC2 for application hosting.
  • Amazon S3 for file and object storage.
  • Amazon RDS for database management.
  • Amazon CloudWatch for monitoring.
Over time, the company notices that its monthly AWS expenditure has increased.
The infrastructure team wants to understand what is driving the increase before making any changes.
Here is how the team could approach the investigation using Cost Explorer.

Step 1: Review Overall Spending

The team opens Cost Explorer and examines its monthly spending trend.
It notices that expenditure has increased over the last few months.
This confirms that there is a change worth investigating, but it does not yet identify the cause.

Step 2: Group Costs by Service

The team groups its costs by AWS service.
This allows it to compare spending across EC2, S3, RDS, CloudWatch, and other services.
The report shows that EC2 contributes a significant portion of the increase.
The team now has a more specific area to investigate.

Step 3: Filter EC2 Spending

The team filters the report to display only EC2 costs.
It examines the available usage types, Regions, and purchase options to understand where the expenditure is coming from.
This helps narrow down the possible causes.

Step 4: Investigate Resource Usage

After reviewing the cost information, the team examines its EC2 infrastructure.
During the investigation, it discovers that some development instances have been left running outside working hours, even when they are not needed.
These resources continue to generate charges while running.
This is an example of how infrastructure usage decisions can affect cloud expenditure.

Step 5: Introduce Improvements

The team considers several improvements:
  • Introducing a shutdown schedule for development instances that are not required outside working hours.
  • Reviewing instance sizes to determine whether they match actual workload requirements.
  • Applying consistent resource tags to improve cost allocation.
  • Reviewing other resources that may be running unnecessarily.
Any changes would need to be tested to ensure that they do not affect application availability or business operations.

Step 6: Continue Monitoring

After implementing the changes, the team continues reviewing its AWS spending through Cost Explorer.
It could also use AWS Budgets to monitor spending against defined thresholds and AWS Cost Anomaly Detection to identify unusual spending patterns.
The important point is that cost investigation does not end after one review.
It is an ongoing process of monitoring, understanding usage, making informed changes, and evaluating the results.
This is a fictional scenario created to illustrate how a business could use AWS Cost Explorer. It does not describe an actual AWS deployment, billing incident, or investigation.

5. AWS Cost Explorer vs AWS Budgets vs Cost Anomaly Detection

AWS provides multiple tools that support cloud cost management. Although they are related, they serve different purposes.
Tool
Primary Purpose
How It Helps
AWS Cost Explorer
Cost and usage analysis
Helps users understand historical spending, usage patterns, cost drivers, and forecasts.
AWS Budgets
Budget monitoring
Helps users set cost or usage budgets and receive alerts when spending approaches or exceeds defined thresholds.
AWS Cost Anomaly Detection
Unusual spending detection
Uses machine learning to identify unusual spending patterns and notify users.
Consider a company that wants to manage its cloud expenditure.
It could use Cost Explorer to investigate how much it spends on EC2, AWS Budgets to monitor whether spending is approaching its monthly budget, and Cost Anomaly Detection to identify unusual increases in expenditure.
These tools complement one another.
Cost Explorer helps answer, "Where is our money going?"
AWS Budgets helps answer, "Are we staying within our planned spending?"
Cost Anomaly Detection helps answer, "Is something unusual happening with our spending?"
Using them together can provide a more complete approach to cloud cost visibility and monitoring.

6. Limitations of AWS Cost Explorer

Although Cost Explorer is useful, it is important to understand what it does not do.

It Does Not Automatically Optimise Infrastructure

Cost Explorer provides cost information and recommendations, but it does not automatically shut down unused EC2 instances, resize resources, or change an application's architecture.
Users must investigate the information and decide which actions are appropriate.

It Is Not a Real-Time Billing Tool

Cost Explorer data is updated at least once every 24 hours, so there may be a delay between resource usage and the appearance of related cost information.
For this reason, it should not be treated as a real-time monitoring or incident response tool.

Recommendations Require Human Review

Reserved Instance and Savings Plans recommendations are based on historical usage and other assumptions.
A recommendation that looks attractive financially may not be suitable if the business expects its workload requirements to change.
Users should review the terms and potential savings before making commitments.

Cost Allocation Depends on Good Tagging Practices

Tags help businesses organise resources and understand spending across teams, projects, and environments.
However, Cost Explorer can only provide useful tag-based cost breakdowns when resources are tagged consistently and the relevant cost allocation tags are activated.

It Focuses on AWS Costs

Cost Explorer is designed to analyse AWS costs and usage. It does not provide a complete view of spending across unrelated cloud providers, on-premises infrastructure, or every other business expense.
Organisations operating hybrid or multi-cloud environments may need additional tools and processes to understand their total technology expenditure.

7. Best Practices for Using AWS Cost Explorer

To get more value from Cost Explorer, businesses should make cost analysis part of their regular cloud operations.
Here are some practical recommendations:
  1. Review spending regularly: Examine monthly and daily cost trends to identify changes that may require investigation.
  1. Use resource tags consistently: Apply meaningful tags such as Environment, Project, Department, and Owner to support cost allocation.
  1. Investigate unexpected increases: When a service becomes more expensive, use filters and groupings to narrow down the cause before making changes.
  1. Right-size resources: Review whether compute and storage resources match actual workload requirements.
  1. Remove unnecessary resources: Identify resources that are no longer required and confirm that they can safely be removed or stopped.
  1. Set up AWS Budgets: Establish spending thresholds and configure alerts to help teams stay within planned budgets.
  1. Use AWS Cost Anomaly Detection: Enable anomaly monitoring to receive notifications about unusual spending patterns.
  1. Review commitment-based discounts carefully: Evaluate Reserved Instance and Savings Plans recommendations against expected future usage before committing.
  1. Understand AWS Free Tier and pricing: Check service pricing, usage limits, and applicable Free Tier offers rather than assuming that every resource is free.
Cost optimisation should not simply mean reducing expenditure. It should mean ensuring that the business receives appropriate value from the resources it pays for.

Conclusion

Understanding cloud costs is an important part of managing an AWS environment.
As businesses deploy more services and their workloads grow, keeping track of expenditure becomes increasingly important. Without proper visibility, it can be difficult to identify which services are driving costs, understand changes in usage, or plan future infrastructure expenses.
AWS Cost Explorer provides a practical way to examine these areas. Through cost visualisations, filtering, grouping, forecasting, natural-language analysis, and purchasing recommendations, it helps users make more informed decisions about their cloud spending.
However, cost visibility is only one part of cost management. Businesses must also monitor resource usage, review their architecture, establish spending controls, and evaluate whether their infrastructure continues to meet their needs.
Ultimately, effective cloud cost management is not just about spending less. It is about understanding where money is being spent, why it is being spent, and whether that expenditure supports the value the business expects from its cloud infrastructure.

Further Reading

For more information, explore the official AWS documentation:


A note about the examples: The company scenario and monthly spending figures in this article are illustrative. They are included to explain how Cost Explorer can be used and should not be interpreted as actual AWS billing data or the results of a live deployment.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article