Installing the Dart SDK on Windows 11 is a fundamental step for developers building pure Dart applications, server-side APIs, or command-line scripts. While Flutter bundles its own version of the Dart runtime, maintaining an independent, system-wide Dart SDK install on Windows 11 gives you direct access to the latest Dart compiler updates, standalone toolchains, and package utilities without relying on Flutter updates.
Prerequisites for Windows 11
Before proceeding with the installation, ensure your development environment satisfies the following baseline requirements:
- Windows 11 64-bit operating system (x64 or ARM64 architecture).
- Windows Terminal or PowerShell 7+ enabled.
- Administrator access to update environment variables.
Note: If you already have Flutter installed, you can access Dart directly through your Flutter binary directory. However, follow this guide if you require a standalone Dart executable for backend or non-Flutter CLI development.
Method 1: Installing Dart SDK via Winget (Recommended)
The native Windows Package Manager (winget) is pre-installed on Windows 11, making it the cleanest and fastest method for a dart sdk install in windows 11.
Step 1: Search for Official Package
Open Windows Terminal or PowerShell as an Administrator and execute the search command:
winget search Dart.DartStep 2: Run the Installation Command
Execute the installation command using the official Dart package identifier:
winget install --id Dart.Dart -eWinget will fetch the latest stable release of the Dart SDK binaries, run the setup executable, and register the binary location into your user PATH.
Method 2: Installing via Chocolatey Package Manager
If you use Chocolatey for software management on Windows, you can perform the installation using a single command.
choco install dart-sdkTo upgrade your existing Dart SDK installation via Chocolatey in the future, simply run:
choco upgrade dart-sdkMethod 3: Manual Zip Installation & Path Configuration
If you operate in a restricted enterprise environment without access to package managers, you can extract the pre-compiled binary zip directly.
Step 1: Download the SDK Archive
Navigate to the official Dart SDK website download section and download the 64-bit Windows release archive (e.g., dartsdk-windows-x64-release.zip).
Step 2: Extract to standard local folder
Extract the contents of the downloaded ZIP archive to a persistent location on your system directory, such as:
C:\Program Files\Dart\dart-sdkStep 3: Update System Environment Variables
To access dart tools anywhere in your terminal, add the SDK's bin folder to your Windows system variables:
- Press Win + R, type
sysdm.cpl, and press Enter. - Select the Advanced tab and click on Environment Variables.
- Under System variables (or User variables), select Path and click Edit.
- Click New and enter the full path to the bin folder:
C:\Program Files\Dart\dart-sdk\bin. - Click OK on all windows to apply the changes.
Verifying the Dart SDK Setup
After completing any of the installation methods, restart your terminal session to ensure the environment variables refresh properly. Run the following command to verify the installation:
dart --versionYou should see terminal output confirming the Dart SDK version and build architecture:
Dart SDK version: 3.x.x (stable) on "windows_x64"Testing Your Installation with a Native Dart Script
Let's confirm that the Dart runtime works correctly by creating and running a simple native script.
1. Create a workspace file
Create a file named main.dart in your local project folder and add the following code:
void main() {
final Map<String, String> envInfo = {
'OS': 'Windows 11',
'Language': 'Dart',
'Status': 'Ready'
};
print('Dart SDK initialized successfully on ${envInfo['OS']}!');
for (final entry in envInfo.entries) {
print('${entry.key}: ${entry.value}');
}
}2. Execute the file via CLI
Run the script using the Dart VM directly from your Windows Terminal:
dart run main.dartIf the configuration is correct, the script executes instantly in your shell window.
Troubleshooting Common Windows 11 Issues
'dart' is not recognized as an internal or external command
If Windows cannot locate the executable, your command shell process is either reading cached PATH values or the system path was set incorrectly. Fix this by:
- Completely closing and reopening Windows Terminal or VS Code.
- Verifying that
C:\Program Files\Dart\dart-sdk\binexists on disk and containsdart.exe. - Running
$env:Pathin PowerShell to confirm the target folder is listed in the current session.
Frequently Asked Questions
Do I need to install the Dart SDK separately if I already installed Flutter?
No. The Flutter SDK comes bundled with the full Dart SDK located inside flutter/bin/cache/dart-sdk. You only need a standalone Dart SDK install if you plan to build server-side or CLI tools without the Flutter framework.
What is the fastest way to perform a dart sdk install in windows 11?
Using Winget via Windows Terminal is the fastest method because it handles downloading, extraction, and system PATH environment variable configuration automatically.
How do I check if Dart is properly configured in my Windows 11 PATH?
Open PowerShell or Command Prompt and run the command 'dart --version'. If it outputs the current version number without errors, your PATH environment variable is set up properly.