OpenTofu vs Terraform (2026)
OpenTofu is the community fork of Terraform created after HashiCorp moved Terraform to the Business Source License in 2023. It is MPL-2.0 licensed under the Linux Foundation, reads the same HCL and works with the same providers and modules, and has added features such as state encryption.
ASK AI ABOUT THIS COMPARISON
OpenTofu vs Terraform: at a glance
License, pricing and platform facts, checked against each project's own site and docs.
| Fact | OpenTofu | Terraform |
|---|---|---|
| Best for | The MPL-2.0 fork of Terraform under the Linux Foundation, compatible with existing providers and modules. | HashiCorp's infrastructure as code tool that provisions cloud resources from declarative HCL, with HCP Terraform for remote runs. |
| License | Open Source | Source Available |
| Pricing | Open Source | Freemium |
| Platforms | Linux, macOS, Windows | Linux, macOS, Windows |
What OpenTofu and Terraform do
Who each tool is built for, with links to its site, its LaunchNests listing and its alternatives.
OpenTofu
Open Source · Open Source
The MPL-2.0 fork of Terraform under the Linux Foundation, compatible with existing providers and modules.
Terraform
Source Available · Freemium
HashiCorp's infrastructure as code tool that provisions cloud resources from declarative HCL, with HCP Terraform for remote runs.
OpenTofu or Terraform: which should you choose?
The situations where each tool is the better fit.
Choose OpenTofu if
- You need an OSI open-source licence or build a product on top of the tool.
- You want community governance and features such as built-in state encryption.
Choose Terraform if
- You use HCP Terraform, Terraform Enterprise or Sentinel policies.
- You want the vendor-supported tool from HashiCorp, now part of IBM.
Frequently asked questions
Straight answers to common questions about OpenTofu and Terraform.
What is the difference between OpenTofu and Terraform?
OpenTofu is the community fork of Terraform created after HashiCorp moved Terraform to the Business Source License in 2023. It is MPL-2.0 licensed under the Linux Foundation, reads the same HCL and works with the same providers and modules, and has added features such as state encryption.
Is OpenTofu or Terraform open source?
OpenTofu is open source, and OpenTofu is free and open source. Terraform is source-available, not OSI open source, and Terraform is free to start, with paid plans as you grow.
When should I choose OpenTofu over Terraform?
You need an OSI open-source licence or build a product on top of the tool. You want community governance and features such as built-in state encryption.
When is Terraform the better choice?
You use HCP Terraform, Terraform Enterprise or Sentinel policies. You want the vendor-supported tool from HashiCorp, now part of IBM.
Which platforms do OpenTofu vs Terraform support?
OpenTofu: Linux, macOS, Windows. Terraform: Linux, macOS, Windows.
More comparisons
Other head-to-head comparisons involving OpenTofu or Terraform.