OpenTofu vs Terraform in 2026: Which IaC Tool Should You Actually Use?
OpenTofu vs Terraform is no longer a philosophical debate about licenses — it's a practical engineering decision with a clear answer for most teams. As of 2026, OpenTofu is the lower-risk default: it's OSI-approved open source (MPL 2.0), governed by a multi-vendor foundation, fully compatible with the Terraform provider ecosystem, and it ships CLI features — like state encryption — that Terraform's open binary still doesn't have. Terraform remains the right choice mainly if you're invested in HCP Terraform and its exclusive Stacks capability.
The fork that started as a protest against HashiCorp's 2023 license change has matured into a genuinely better open-source tool by several measures, with Boeing, Capital One, and AMD running it in production.
This comparison covers the license question that started it all, the feature gap that has since opened up (in both directions), real adoption numbers, and a decision framework you can apply to your own stack.
Key Takeaways
- Terraform has shipped under the source-available BSL 1.1 since v1.6; OpenTofu remains MPL 2.0, an OSI-approved open-source license — which eliminates legal-review friction in regulated environments.
- OpenTofu has ~12% adoption among IaC practitioners as of April 2026, with 27% of teams planning to evaluate or expand it; Terraform still leads with 33–62% depending on the survey.
- OpenTofu ships CLI features Terraform's open binary lacks: state encryption (v1.7), early variable evaluation (v1.8), provider for_each and the -exclude flag (v1.9).
- Terraform's main exclusive — Stacks — lives in the paid HCP Terraform platform, not the open CLI.
- Enterprises including Boeing, Capital One, and AMD run OpenTofu in production.
Why the Fork Happened (60-Second Version)
In August 2023, HashiCorp switched Terraform from the open-source MPL 2.0 license to the Business Source License (BSL 1.1) starting with v1.6. BSL is "source-available," not open source — the Open Source Initiative does not approve it — and it restricts anyone building competing commercial products on top of Terraform.
The community response was immediate: a fork of the last MPL-licensed version, initially called OpenTF, renamed OpenTofu, and placed under neutral foundation governance — it has since joined the Cloud Native Computing Foundation, giving it long-term institutional backing no single vendor can revoke. It's the same playbook that produced Valkey when Redis changed its license — a story we covered in Valkey vs Redis — and in both cases, the fork stopped being the "protest option" and became the default open choice.
License and Governance: The Foundation of the Decision
For most organizations, the license is still the deciding factor — not because engineers care about license text, but because legal teams do. MPL 2.0 is unambiguous: your lawyers already approved it years ago. BSL 1.1 requires case-by-case review of what counts as "competing" use, which, per env0's enterprise guide, creates real friction in regulated and public-sector environments.
| OpenTofu | Terraform | |
|---|---|---|
| License | MPL 2.0 (OSI-approved open source) | BSL 1.1 since v1.6 (source-available) |
| Governance | Multi-vendor, foundation-backed (CNCF/Linux Foundation) | HashiCorp (now part of IBM) |
| Provider ecosystem | Full compatibility with Terraform registry providers | Native |
| Who controls the roadmap | Community + steering committee | Single vendor |
Governance matters more after HashiCorp's acquisition by IBM: Terraform's roadmap now serves one company's platform strategy. OpenTofu's roadmap is set by the people who use it.
Feature Comparison: The Gap Runs in Both Directions
The surprising development since the fork: OpenTofu isn't just keeping pace — it's shipping capabilities Terraform's open CLI doesn't have. According to Scalr's 2026 comparison and env0's feature breakdown:
OpenTofu-exclusive (open CLI):
- State encryption (v1.7) — encrypt state files client-side, at rest and in transit. Terraform state famously stores secrets in plaintext; this alone justifies migration for many security teams.
- Early variable evaluation (v1.8) — use variables in backend configuration and module sources, killing a decade-old class of workarounds.
- Provider for_each (v1.9) — dynamically instantiate providers, the long-requested fix for multi-region/multi-account sprawl.
- -exclude flag (v1.9) — targeted applies that skip specific resources.
Terraform-exclusive:
- Terraform Stacks — orchestration of multi-environment deployments. The catch, noted across multiple comparisons: Stacks lives in HCP Terraform, the paid platform — not in the open binary. If you're not an HCP customer, Terraform's exclusives are largely irrelevant to you.
For day-to-day work, the two remain nearly identical: same HCL, same plan/apply workflow, same providers. Migration for most codebases is brew install opentofu, tofu init, and a state file that just works.
Adoption in 2026: Past the Tipping Point for Trust
Is OpenTofu actually used, or just admired? The numbers say used. Per Scalr's 2026 data, OpenTofu sits at roughly 12% adoption among IaC practitioners as of April 2026, with another 27% of teams planning to evaluate or expand it. Terraform still commands the largest share — 33–62% depending on the survey — so this isn't a story of Terraform collapsing. It's a story of the fork crossing the credibility threshold: Boeing, Capital One, and AMD run OpenTofu in production, which answers the "is it enterprise-ready?" question definitively.
The trajectory matters more than the snapshot. A tool at 12% with 27% evaluating is compounding; open-source momentum in infrastructure tooling has historically been a one-way street — the same dynamic powering the broader open-source developer tools stack we've written about.
Should You Migrate? A Decision Framework
Choose OpenTofu if:
- You use the open CLI (not HCP Terraform) — you lose nothing and gain state encryption, provider for_each, and early variable evaluation.
- You're in a regulated industry or public sector where BSL requires legal review.
- You build tooling or platforms on top of your IaC engine — BSL's "competing use" clause is aimed directly at you.
- You want a say in the roadmap.
Stay on Terraform if:
- You're an HCP Terraform customer and depend on Stacks or platform integrations.
- You have vendor-support contracts that mandate HashiCorp's binary.
- Your team's risk appetite says "wait one more year" — Terraform is not going away, and the migration path will still be there.
Either way: write portable HCL. Avoid features exclusive to one implementation at the edges, keep state in a backend both tools support, and the decision stays reversible.
FAQ
Is OpenTofu better than Terraform? For open-CLI users in 2026, OpenTofu is arguably better: it's truly open source (MPL 2.0), has multi-vendor governance, and ships features Terraform's free binary lacks — state encryption, provider for_each, and early variable evaluation. Terraform is better only if you rely on the paid HCP Terraform platform and Stacks.
Is OpenTofu compatible with Terraform providers and modules?
Yes. OpenTofu maintains full compatibility with the Terraform provider ecosystem and existing modules. For most codebases, migration means installing OpenTofu and running tofu init — existing state and HCL work unchanged.
Who uses OpenTofu in production? Enterprises including Boeing, Capital One, and AMD run OpenTofu in production. As of April 2026 it has roughly 12% adoption among IaC practitioners, with 27% of teams planning to evaluate or expand their use.
Why did OpenTofu fork from Terraform? In August 2023, HashiCorp moved Terraform from the open-source MPL 2.0 license to the source-available BSL 1.1. The community forked the last open version to preserve a genuinely open-source IaC tool, and placed it under neutral foundation governance so no single vendor could change the license again.
Does OpenTofu encrypt state files? Yes — OpenTofu added client-side state encryption in v1.7, covering state at rest and in transit. Terraform's open-source CLI does not offer state encryption, which leaves secrets in plaintext state files unless you rely on backend-level protections.
The Bottom Line
The fork has matured, and the burden of proof has flipped. In 2024 you needed a reason to choose OpenTofu; in 2026 you need a reason not to. For teams on the open CLI, OpenTofu offers the same workflow with a real open-source license, neutral governance, and a feature set that has pulled ahead where it counts — state encryption alone is worth the switch for security-conscious teams.
Our verdict: default to OpenTofu for new projects, migrate existing open-CLI codebases opportunistically, and stay on Terraform only if HCP's platform features are genuinely load-bearing for your organization. Infrastructure tooling should never be a bet on one vendor's goodwill — that's the lesson of 2023, and OpenTofu is the institutionalized answer to it.