Sweden Mandates Open-Source Software for All Government Agencies

The Swedish government has adopted an "open by default" policy requiring all government agencies to prioritise open-source software in new IT procurement, joining a growing movement of European nations reducing dependency on proprietary US tech.

Code on screen representing open-source software development

Sweden's Ministry of Finance has announced a new directive requiring all government agencies to adopt an "open by default" approach to software procurement. Under the new policy, agencies must prioritise open-source solutions when purchasing or developing new IT systems, and must provide written justification if they choose a proprietary alternative.

The mandate, which takes effect on July 1, 2026, applies to approximately 340 government agencies employing around 270,000 public servants. It covers all new software procurement, custom development projects, and major system upgrades.

What "Open by Default" Means in Practice

The Swedish directive establishes a clear hierarchy for software procurement decisions:

  1. First preference: Existing open-source solutions that meet requirements
  2. Second preference: Open-source solutions that can be adapted to meet requirements
  3. Third preference: Proprietary solutions with open data formats and APIs
  4. Last resort: Fully proprietary solutions (requires written justification)

The policy also requires that any software developed with public funds must be released as open source under an approved license, ensuring that Swedish taxpayers benefit from government technology investments.

"Public Money, Public Code"

Sweden's mandate aligns with the Free Software Foundation Europe's "Public Money, Public Code" campaign, which argues that software paid for by taxpayers should be available to all. The campaign has gained support from over 200 organisations and multiple EU governments.

The European Open-Source Wave

Sweden joins a growing number of European countries moving toward open-source government infrastructure:

Recommended Open-Source Stack

The Swedish Agency for Digital Government (DIGG) has published a recommended stack of open-source tools for government agencies to consider:

Cost Savings and Security Benefits

The Swedish government estimates the open-source mandate will save approximately SEK 1.2 billion (roughly €105 million) annually in licensing fees within five years. But proponents argue the benefits go far beyond cost savings:

"In a world where digital infrastructure is as critical as physical infrastructure, relying on proprietary software from foreign vendors is a strategic vulnerability. Open source gives us control over our own digital destiny." — Erik Slottner, Swedish Minister for Public Administration

Who worked on this article

This article was written, edited and fact-checked by three members of our editorial team.

Ingrid Halvorsen
Written by

Ingrid Halvorsen

Managing Editor · Oslo, Norway

Runs the review process and decides when a page is ready to publish or needs another pass.

Marta Kowalczyk
Edited by

Marta Kowalczyk

Senior Analyst, Infrastructure & Developer Tools · Warsaw, Poland

Covers hosting, developer tooling and the practical side of moving workloads to European providers.

Daniel Brandt
Fact-checked by

Daniel Brandt

Privacy & Compliance Researcher · Berlin, Germany

Checks the compliance claims: where the company is established, where the data sits, and what the DPA actually says.

Read our editorial process for how we source, verify and update these pages.