Visual Studio Codespaces pricing

Visual Studio Codespaces enables you to create powerful cloud-hosted development environments which are accessible from Visual Studio Code or a browser-based editor.

Pricing details

With Visual Studio Codespaces, you can create fully managed, cloud-hosted development environments, or register your own self-hosted development environments with the service.

There is no charge for self-hosted environments.

Cloud-hosted environments can be in a “suspended” or an “active” state, and incur two types of costs – storage and compute. Storage costs are incurred for the lifetime of an environment (i.e. from when you create them until you delete them).

Storage costs for all instance types are $-/hour.

Additionally, while an environment is in an “active” state, it incurs compute costs. Compute costs for each instance type are covered in the table below:

Instance type Approximate cost to run per hour *
Basic (2 cores, 4GB RAM, 64 GB SSD) $-
Standard (4 cores, 8 GB RAM, 64 GB SSD) $-
Premium (8 cores, 16 GB RAM, 64 GB SSD) $-
* For more accurate cost estimates, see the Azure pricing calculator

Some example pricing for common scenarios over a 730-hour month:

Scenario Instance type Active hours Total hours Approximate cost
Reviewing a pull request Basic 2 2 $-
Occasional use on a heavy data processing workload Premium 40 730 $-
Full-time development Standard 100 730 $-
Dormant project (unused, suspended environment) Standard 0 730 $-

Note: Your Azure bill will show prices displayed in environment units. Prices above are translated to local currency and should match your usage where an environment unit is $-.

Support & SLA


  • Environment Units bundle compute, IP, network, snapshots and disk costs together. A Visual studio environment instance is billed on an hourly basis according to a base set of Environment units which depend on the environment size. A standard Visual Studio environment has a different base rate of environment units than a premium Visual Studio environment due to the difference of compute, IP, network, snapshots and disk costs together.
  • During creation, you can set an amount of time (e.g. 5 minutes, 2 hours) after which, if there is no connection, the environment will be suspended. You can also suspend an environment from the portal. While an environment is suspended, you are only billed for storage until that environment is deleted or made active again.
  • Time is measured in seconds, so you will be billed for 6 minutes and 45 seconds of active time.
  • Yes, a cloud-hosted environment incurs storage costs until you delete it.
  • Yes, you can use Azure credits from your Visual Studio Subscription, Azure free account, or other eligible programs toward Visual Studio Codespaces usage.
  • By default, Visual Studio Codespaces provisions fully managed environments that run in Azure. These environments are backed by the full power of the cloud (always available, quick to create, scalable, etc). However, you may also register your own physical or virtualized environment to your Visual Studio Codespaces plan. This allows you to have some of the benefits of Visual Studio Codespaces (e.g. use of the web-based editor) while leveraging your existing, potentially specialized, infrastructure.
  • The documentation for Visual Studio Codespaces includes a complete Visual Studio Codespaces FAQ.


Estimate your monthly costs for Azure services

Review Azure pricing frequently asked questions

Learn more about Visual Studio Codespaces

Added to estimate. Press 'v' to view on calculator

Ready when you are–get started with Visual Studio Codespaces

Start now