

# Specifications for Amazon EC2 compute optimized instances
<a name="co"></a>

Compute optimized instances are designed for compute intensive applications that benefit from high performance processors. These instances are ideal for batch processing workloads, media transcoding, high performance web servers, high performance computing (HPC), scientific modeling, dedicated gaming servers, ad server engines, and machine learning inference.

For information on previous generation instance types of this category, such as C4 instances, see [Specifications for Amazon EC2 previous generation instances](pg.md).

**Topics**
+ [Instance families and instance types](#co_sizes)
+ [Instance family summary](#co_summary)
+ [Performance specifications](#co_hardware)
+ [Network specifications](#co_network)
+ [Amazon EBS specifications](#co_storage-ebs)
+ [Instance store specifications](#co_instance-store)
+ [Security specifications](#co_security)

**Pricing**  
For pricing information, see [Amazon EC2 On-Demand Pricing](https://aws.amazon.com/ec2/pricing/on-demand/).

## Instance families and instance types
<a name="co_sizes"></a>


| Instance family | Available instance types | 
| --- | --- | 
| C5 | c5.large \| c5.xlarge \| c5.2xlarge \| c5.4xlarge \| c5.9xlarge \| c5.12xlarge \| c5.18xlarge \| c5.24xlarge \| c5.metal | 
| C5a | c5a.large \| c5a.xlarge \| c5a.2xlarge \| c5a.4xlarge \| c5a.8xlarge \| c5a.12xlarge \| c5a.16xlarge \| c5a.24xlarge | 
| C5ad | c5ad.large \| c5ad.xlarge \| c5ad.2xlarge \| c5ad.4xlarge \| c5ad.8xlarge \| c5ad.12xlarge \| c5ad.16xlarge \| c5ad.24xlarge | 
| C5d | c5d.large \| c5d.xlarge \| c5d.2xlarge \| c5d.4xlarge \| c5d.9xlarge \| c5d.12xlarge \| c5d.18xlarge \| c5d.24xlarge \| c5d.metal | 
| C5n | c5n.large \| c5n.xlarge \| c5n.2xlarge \| c5n.4xlarge \| c5n.9xlarge \| c5n.18xlarge \| c5n.metal | 
| C6a | c6a.large \| c6a.xlarge \| c6a.2xlarge \| c6a.4xlarge \| c6a.8xlarge \| c6a.12xlarge \| c6a.16xlarge \| c6a.24xlarge \| c6a.32xlarge \| c6a.48xlarge \| c6a.metal | 
| C6g | c6g.medium \| c6g.large \| c6g.xlarge \| c6g.2xlarge \| c6g.4xlarge \| c6g.8xlarge \| c6g.12xlarge \| c6g.16xlarge \| c6g.metal | 
| C6gd | c6gd.medium \| c6gd.large \| c6gd.xlarge \| c6gd.2xlarge \| c6gd.4xlarge \| c6gd.8xlarge \| c6gd.12xlarge \| c6gd.16xlarge \| c6gd.metal | 
| C6gn | c6gn.medium \| c6gn.large \| c6gn.xlarge \| c6gn.2xlarge \| c6gn.4xlarge \| c6gn.8xlarge \| c6gn.12xlarge \| c6gn.16xlarge | 
| C6i | c6i.large \| c6i.xlarge \| c6i.2xlarge \| c6i.4xlarge \| c6i.8xlarge \| c6i.12xlarge \| c6i.16xlarge \| c6i.24xlarge \| c6i.32xlarge \| c6i.metal | 
| C6id | c6id.large \| c6id.xlarge \| c6id.2xlarge \| c6id.4xlarge \| c6id.8xlarge \| c6id.12xlarge \| c6id.16xlarge \| c6id.24xlarge \| c6id.32xlarge \| c6id.metal | 
| C6in | c6in.large \| c6in.xlarge \| c6in.2xlarge \| c6in.4xlarge \| c6in.8xlarge \| c6in.12xlarge \| c6in.16xlarge \| c6in.24xlarge \| c6in.32xlarge \| c6in.metal | 
| C7a | c7a.medium \| c7a.large \| c7a.xlarge \| c7a.2xlarge \| c7a.4xlarge \| c7a.8xlarge \| c7a.12xlarge \| c7a.16xlarge \| c7a.24xlarge \| c7a.32xlarge \| c7a.48xlarge \| c7a.metal-48xl | 
| C7g | c7g.medium \| c7g.large \| c7g.xlarge \| c7g.2xlarge \| c7g.4xlarge \| c7g.8xlarge \| c7g.12xlarge \| c7g.16xlarge \| c7g.metal | 
| C7gd | c7gd.medium \| c7gd.large \| c7gd.xlarge \| c7gd.2xlarge \| c7gd.4xlarge \| c7gd.8xlarge \| c7gd.12xlarge \| c7gd.16xlarge \| c7gd.metal | 
| C7gn | c7gn.medium \| c7gn.large \| c7gn.xlarge \| c7gn.2xlarge \| c7gn.4xlarge \| c7gn.8xlarge \| c7gn.12xlarge \| c7gn.16xlarge \| c7gn.metal | 
| C7i | c7i.large \| c7i.xlarge \| c7i.2xlarge \| c7i.4xlarge \| c7i.8xlarge \| c7i.12xlarge \| c7i.16xlarge \| c7i.24xlarge \| c7i.48xlarge \| c7i.metal-24xl \| c7i.metal-48xl | 
| C7i-flex | c7i-flex.large \| c7i-flex.xlarge \| c7i-flex.2xlarge \| c7i-flex.4xlarge \| c7i-flex.8xlarge \| c7i-flex.12xlarge \| c7i-flex.16xlarge | 
| C8a | c8a.medium \| c8a.large \| c8a.xlarge \| c8a.2xlarge \| c8a.4xlarge \| c8a.8xlarge \| c8a.12xlarge \| c8a.16xlarge \| c8a.24xlarge \| c8a.48xlarge \| c8a.metal-24xl \| c8a.metal-48xl | 
| C8g | c8g.medium \| c8g.large \| c8g.xlarge \| c8g.2xlarge \| c8g.4xlarge \| c8g.8xlarge \| c8g.12xlarge \| c8g.16xlarge \| c8g.24xlarge \| c8g.48xlarge \| c8g.metal-24xl \| c8g.metal-48xl | 
| C8gb | c8gb.medium \| c8gb.large \| c8gb.xlarge \| c8gb.2xlarge \| c8gb.4xlarge \| c8gb.8xlarge \| c8gb.12xlarge \| c8gb.16xlarge \| c8gb.24xlarge \| c8gb.48xlarge \| c8gb.metal-24xl \| c8gb.metal-48xl | 
| C8gd | c8gd.medium \| c8gd.large \| c8gd.xlarge \| c8gd.2xlarge \| c8gd.4xlarge \| c8gd.8xlarge \| c8gd.12xlarge \| c8gd.16xlarge \| c8gd.24xlarge \| c8gd.48xlarge \| c8gd.metal-24xl \| c8gd.metal-48xl | 
| C8gn | c8gn.medium \| c8gn.large \| c8gn.xlarge \| c8gn.2xlarge \| c8gn.4xlarge \| c8gn.8xlarge \| c8gn.12xlarge \| c8gn.16xlarge \| c8gn.24xlarge \| c8gn.48xlarge \| c8gn.metal-24xl \| c8gn.metal-48xl | 
| C8i | c8i.large \| c8i.xlarge \| c8i.2xlarge \| c8i.4xlarge \| c8i.8xlarge \| c8i.12xlarge \| c8i.16xlarge \| c8i.24xlarge \| c8i.32xlarge \| c8i.48xlarge \| c8i.96xlarge \| c8i.metal-48xl \| c8i.metal-96xl | 
| C8id | c8id.large \| c8id.xlarge \| c8id.2xlarge \| c8id.4xlarge \| c8id.8xlarge \| c8id.12xlarge \| c8id.16xlarge \| c8id.24xlarge \| c8id.32xlarge \| c8id.48xlarge \| c8id.96xlarge \| c8id.metal-48xl \| c8id.metal-96xl | 
| C8i-flex | c8i-flex.large \| c8i-flex.xlarge \| c8i-flex.2xlarge \| c8i-flex.4xlarge \| c8i-flex.8xlarge \| c8i-flex.12xlarge \| c8i-flex.16xlarge | 
| C8in | c8in.large \| c8in.xlarge \| c8in.2xlarge \| c8in.4xlarge \| c8in.8xlarge \| c8in.12xlarge \| c8in.16xlarge \| c8in.24xlarge \| c8in.32xlarge \| c8in.48xlarge \| c8in.96xlarge \| c8in.metal-48xl \| c8in.metal-96xl | 
| C8ine | c8ine.large \| c8ine.xlarge \| c8ine.2xlarge \| c8ine.4xlarge \| c8ine.8xlarge \| c8ine.12xlarge | 
| C8ib | c8ib.large \| c8ib.xlarge \| c8ib.2xlarge \| c8ib.4xlarge \| c8ib.8xlarge \| c8ib.12xlarge \| c8ib.16xlarge \| c8ib.24xlarge \| c8ib.32xlarge \| c8ib.48xlarge \| c8ib.96xlarge \| c8ib.metal-48xl \| c8ib.metal-96xl | 

## Instance family summary
<a name="co_summary"></a>


| Instance family | Hypervisor | Processor type (architecture) | Metal instances available | Dedicated Hosts support | Spot support | Hibernation support | Supported operating systems | 
| --- | --- | --- | --- | --- | --- | --- | --- | 
| C5 | [Nitro v2](ec2-nitro-instances.md) | Intel (x86\_64) | ✓ Yes | ✓ Yes | ✓ Yes | ✓ Yes | Windows \| Linux | 
| C5a | [Nitro v2](ec2-nitro-instances.md) | AMD (x86\_64) | ✗ No | ✗ No | ✓ Yes | ✗ No | Windows \| Linux | 
| C5ad | [Nitro v2](ec2-nitro-instances.md) | AMD (x86\_64) | ✗ No | ✗ No | ✓ Yes | ✗ No | Windows \| Linux | 
| C5d | [Nitro v2](ec2-nitro-instances.md) | Intel (x86\_64) | ✓ Yes | ✓ Yes | ✓ Yes | ✓ Yes | Windows \| Linux | 
| C5n | [Nitro v3](ec2-nitro-instances.md) | Intel (x86\_64) | ✓ Yes | ✓ Yes | ✓ Yes | ✗ No | Windows \| Linux | 
| C6a | [Nitro v4](ec2-nitro-instances.md) | AMD (x86\_64) | ✓ Yes | ✓ Yes | ✓ Yes | ✓ Yes | Windows \| Linux | 
| C6g | [Nitro v2](ec2-nitro-instances.md) | AWS Graviton (arm64) | ✓ Yes | ✓ Yes | ✓ Yes | ✓ Yes | Linux | 
| C6gd | [Nitro v2](ec2-nitro-instances.md) | AWS Graviton (arm64) | ✓ Yes | ✓ Yes | ✓ Yes | ✓ Yes | Linux | 
| C6gn | [Nitro v4](ec2-nitro-instances.md) | AWS Graviton (arm64) | ✗ No | ✓ Yes | ✓ Yes | ✓ Yes | Linux | 
| C6i | [Nitro v4](ec2-nitro-instances.md) | Intel (x86\_64) | ✓ Yes | ✓ Yes | ✓ Yes | ✓ Yes | Windows \| Linux | 
| C6id | [Nitro v4](ec2-nitro-instances.md) | Intel (x86\_64) | ✓ Yes | ✓ Yes | ✓ Yes | ✓ Yes | Windows \| Linux | 
| C6in | [Nitro v4](ec2-nitro-instances.md) | Intel (x86\_64) | ✓ Yes | ✓ Yes | ✓ Yes | ✓ Yes | Windows \| Linux | 
| C7a | [Nitro v4](ec2-nitro-instances.md) | AMD (x86\_64) | ✓ Yes | ✓ Yes | ✓ Yes | ✓ Yes | Windows \| Linux | 
| C7g | [Nitro v4](ec2-nitro-instances.md) | AWS Graviton (arm64) | ✓ Yes | ✓ Yes | ✓ Yes | ✓ Yes | Linux | 
| C7gd | [Nitro v4](ec2-nitro-instances.md) | AWS Graviton (arm64) | ✓ Yes | ✓ Yes | ✓ Yes | ✓ Yes | Linux | 
| C7gn | [Nitro v5](ec2-nitro-instances.md) | AWS Graviton (arm64) | ✓ Yes | ✓ Yes | ✓ Yes | ✓ Yes | Linux | 
| C7i | [Nitro v4](ec2-nitro-instances.md) | Intel (x86\_64) | ✓ Yes | ✓ Yes | ✓ Yes | ✓ Yes | Windows \| Linux | 
| C7i-flex | [Nitro v4](ec2-nitro-instances.md) | Intel (x86\_64) | ✗ No | ✗ No | ✓ Yes | ✓ Yes | Windows \| Linux | 
| C8a | [Nitro v6](ec2-nitro-instances.md) | AMD (x86\_64) | ✓ Yes | ✓ Yes | ✓ Yes | ✓ Yes | Windows \| Linux | 
| C8g | [Nitro v5](ec2-nitro-instances.md) | AWS Graviton (arm64) | ✓ Yes | ✓ Yes | ✓ Yes | ✓ Yes | Linux | 
| C8gb | [Nitro v6](ec2-nitro-instances.md) | AWS Graviton (arm64) | ✓ Yes | ✓ Yes | ✓ Yes | ✓ Yes | Linux | 
| C8gd | [Nitro v5](ec2-nitro-instances.md) | AWS Graviton (arm64) | ✓ Yes | ✓ Yes | ✓ Yes | ✓ Yes | Linux | 
| C8gn | [Nitro v6](ec2-nitro-instances.md) | AWS Graviton (arm64) | ✓ Yes | ✓ Yes | ✓ Yes | ✓ Yes | Linux | 
| C8i | [Nitro v6](ec2-nitro-instances.md) | Intel (x86\_64) | ✓ Yes | ✓ Yes | ✓ Yes | ✓ Yes | Windows \| Linux | 
| C8id | [Nitro v6](ec2-nitro-instances.md) | Intel (x86\_64) | ✓ Yes | ✓ Yes | ✓ Yes | ✗ No | Windows \| Linux | 
| C8i-flex | [Nitro v6](ec2-nitro-instances.md) | Intel (x86\_64) | ✗ No | ✗ No | ✓ Yes | ✓ Yes | Windows \| Linux | 
| C8in | [Nitro v6](ec2-nitro-instances.md) | Intel (x86\_64) | ✓ Yes | ✓ Yes | ✓ Yes | ✗ No | Windows \| Linux | 
| C8ine | [Nitro v6](ec2-nitro-instances.md) | Intel (x86\_64) | ✗ No | ✗ No | ✗ No | ✗ No | Windows \| Linux | 
| C8ib | [Nitro v6](ec2-nitro-instances.md) | Intel (x86\_64) | ✓ Yes | ✓ Yes | ✓ Yes | ✗ No | Windows \| Linux | 

## Performance specifications
<a name="co_hardware"></a>

[See the AWS documentation website for more details](http://docs.aws.amazon.com/ec2/latest/instancetypes/co.html)

## Network specifications
<a name="co_network"></a>

**Note**  
C8a, C8g, C8gd, C8i, C8id, C8i-flex instance types support configurable bandwidth weightings. With these instance types, you can optimize an instance's bandwidth for either networking performance or Amazon EBS performance. The following table shows the default networking bandwidth performance for these instance types. For the supported configurable weightings, see [ Configurable bandwidth weighting preferences](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configure-bandwidth-weighting.html).

[See the AWS documentation website for more details](http://docs.aws.amazon.com/ec2/latest/instancetypes/co.html)

**Note**  
1 These instances have a baseline bandwidth and can use a network I/O credit mechanism to burst beyond their baseline bandwidth on a best effort basis. Other instances types can sustain their maximum performance indefinitely. For more information, see [ instance network bandwidth](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-network-bandwidth.html).  
For `c6in.32xlarge`, `c6in.metal`, you must attach at least 2 ENIs, to separate network cards, to achieve 200 Gbps throughput. Each ENI attached to a network card can achieve up to 170 Gbps.  
For `c8in.96xlarge`, `c8in.metal-96xl`, `c8gn.48xlarge`, `c8gn.metal-48xl`, you must attach at least 2 ENIs, to separate network cards, to achieve 600 Gbps throughput. Each ENI attached to a network card can achieve up to 300 Gbps.  
For `c8ib.96xlarge`, `c8ib.metal-96xl`, `c8gb.48xlarge`, `c8gb.metal-48xl`, you must attach at least 2 ENIs, to separate network cards, to achieve 400 Gbps throughput. Each ENI attached to a network card can achieve up to 200 Gbps.

## Amazon EBS specifications
<a name="co_storage-ebs"></a>

The following table indicates which instance types are Amazon EBS optimized by default and which optionally support it. It also describes their EBS-optimized performance, including dedicated bandwidth to Amazon EBS, the typical maximum aggregate throughput that can be achieved on that dedicated connection with a streaming read workload and 128 KiB I/O size, and the maximum IOPS the instance type can support when using a 16 KiB I/O size. Instance types not listed do not support Amazon EBS optimization.

**Important**  
An instance's EBS performance is bounded by the instance's performance limits, or the aggregated performance of its attached volumes, whichever is smaller. To achieve maximum EBS performance, an instance must have attached volumes that provide a combined performance equal to or greater than the maximum instance performance. For example, to achieve `80,000` IOPS for `r6i.16xlarge`, the instance must have at least `5` `gp3` volumes provisioned with `16,000` IOPS each (`5` volumes x `16,000` IOPS = `80,000` IOPS).  
We recommend that you choose an EBS–optimized instance type that provides more dedicated Amazon EBS throughput than your application needs; otherwise, the connection between Amazon EBS and Amazon EC2 can become a performance bottleneck.

**Note**  
C8a, C8g, C8gd, C8i, C8id, C8i-flex instance types support configurable bandwidth weightings. With these instance types, you can optimize an instance's bandwidth for either networking performance or Amazon EBS performance. The following table shows the default networking bandwidth performance for these instance types. For the supported configurable weightings, see [ Configurable bandwidth weighting preferences](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configure-bandwidth-weighting.html).

[See the AWS documentation website for more details](http://docs.aws.amazon.com/ec2/latest/instancetypes/co.html)

**Note**  
1 These instances can support maximum performance for 30 minutes at least once every 24 hours, after which they revert to their baseline performance. Other instances can sustain the maximum performance indefinitely. If your workload requires sustained maximum performance for longer than 30 minutes, use one of these instances.

## Instance store specifications
<a name="co_instance-store"></a>

The following table shows the instance store volume configuration for supported instance types, along with the aggregated IOPS performance with 4,096 byte block size at queue depth saturation. 

[See the AWS documentation website for more details](http://docs.aws.amazon.com/ec2/latest/instancetypes/co.html)

1 Volumes attached to certain instances suffer a first-write penalty unless initialized. For more information, see [Optimize disk performance for instance store volumes](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/disk-performance.html).

2 For more information, see [Instance store volume TRIM support](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ssd-instance-store.html#InstanceStoreTrimSupport).

## Security specifications
<a name="co_security"></a>

[See the AWS documentation website for more details](http://docs.aws.amazon.com/ec2/latest/instancetypes/co.html)