Want to use Windows and Ubuntu on the same computer without removing either operating system? A dual-boot setup lets you do exactly that. Instead of choosing between Windows and Linux, you can install both operating systems on your PC and select which one you want to use whenever the computer starts.
This can be especially useful if you rely on Windows for certain applications, games, or work tasks but also want Ubuntu for programming, development, Linux tools, server administration, or learning Linux.
In this guide, we’ll walk through how to dual-boot Windows and Ubuntu from start to finish.
What Is Dual Boot, and What Are Its Benefits?
What Is Dual Boot?
Dual booting means installing two operating systems on one computer and allowing you to choose which one starts when you turn on the PC.
For example, after installing Windows and Ubuntu, your computer may display a boot menu when it starts. You can select Windows when you need your normal Windows environment or choose Ubuntu when you want to work in Linux.
Both operating systems have their own system files and storage areas, so you can use them independently.
You Can Use Windows and Ubuntu on One PC
The biggest benefit is that you don’t have to purchase a second computer just to use Ubuntu. Your existing Windows PC can run both operating systems.
This is convenient if you need Windows applications for everyday work but want access to the Linux environment for development or technical projects.
You Can Learn Linux Without Removing Windows
If you’re new to Linux, dual-booting gives you a practical way to learn Ubuntu while keeping Windows available.
You can experiment with Ubuntu commands, Linux software, programming tools, and system administration without giving up your Windows installation.
Better Performance Than Running a Virtual Machine
A virtual machine runs one operating system inside another, which uses additional system resources. With dual booting, the operating system you select has direct access to your computer’s hardware.
That can provide better performance for demanding tasks such as gaming, software development, graphics work, and other resource-intensive applications.
Separate Environments for Different Tasks
You can use Windows for gaming, Microsoft applications, and Windows-specific software, while Ubuntu can handle programming, Linux development, security testing in authorized environments, and other Linux-focused tasks.
How to Dual Boot Windows and Ubuntu [Complete Guide]

To dual-boot Windows and Ubuntu,
- Back up your important Windows files before changing partitions or installing Ubuntu.
- Check your PC’s compatibility, including available storage, RAM, firmware mode, and Windows configuration.
- Create a bootable Ubuntu USB drive using the official Ubuntu installation image and a suitable USB creation tool.
- Create unallocated disk space in Windows for the Ubuntu installation.
- Boot your computer from the Ubuntu USB drive and start the Ubuntu installer.
- Choose the option to install Ubuntu alongside Windows when available, or manually select the unallocated space.
- Complete the Ubuntu installation, restart the computer, and remove the USB drive when prompted.
- Use the boot menu to choose Windows or Ubuntu whenever you start the computer.
Let’s learn in detail!
1: Back Up Your Important Files
Before changing partitions or installing another operating system, create a backup of important files. This is one of the most important precautions in the entire process.
Save documents, photos, videos, work files, browser data, and anything else you cannot afford to lose to an external drive or a trusted cloud storage service.
A dual-boot installation can normally be completed without affecting your Windows files, but partition changes always carry some risk. A backup gives you a way to recover if something goes wrong.
Also, make sure you know your Windows account credentials and have access to any recovery information you may need.
2: Check Your Computer Before Installing Ubuntu
Before downloading Ubuntu, check whether your computer has enough resources.
You should have enough free storage space for Ubuntu and your applications. Giving Ubuntu more space makes the system easier to use over the long term. For a basic installation, you can work with less, but allocating around 30 GB or more is a much more comfortable starting point.
You should also check whether your computer uses UEFI firmware, which is standard on most modern PCs. You can check this in Windows by pressing Windows + R, entering msinfo32, and opening System Information. Look for BIOS Mode and check whether it says UEFI.
3: Download Ubuntu
Next, download the Ubuntu installation image from the official Ubuntu website.
Choose the current Ubuntu Desktop ISO that matches your needs. The ISO file is the installation image that you’ll place on a USB flash drive.
Make sure you have a reliable internet connection because the download can be several gigabytes.
Once the ISO has downloaded, don’t simply copy the file onto the USB drive. You need to create a bootable USB installer using an appropriate USB creation utility.
4: Create a Bootable Ubuntu USB Drive
Connect a USB flash drive to your computer. A drive with at least 8 GB of capacity is generally a practical choice.
Open your preferred USB creation tool, select the downloaded Ubuntu ISO, choose your USB drive, and start the process of creating the bootable media.
Be careful when selecting the USB drive because the process will normally erase the existing contents of that drive.
When the process finishes, safely eject the USB drive and keep it connected if you’re ready to begin the installation.
5: Create Free Space for Ubuntu
Now you need to make room for Ubuntu without deleting Windows.
In Windows, right-click the Start button and open Disk Management. Locate the Windows partition, which is commonly the C: drive, and check how much free space is available.
Right-click the appropriate Windows partition and select Shrink Volume. Enter the amount of space you want to remove from the Windows partition.
Windows will then create unallocated space. This is the area Ubuntu can use during installation.
Don’t delete Windows partitions or recovery partitions simply because you’re unsure what they are. If you’re not certain which partition to modify, stop and verify it before continuing.
6: Boot From the Ubuntu USB
Restart your computer with the Ubuntu USB connected.
As the computer starts, open the boot menu. The exact key depends on your computer manufacturer, but common choices include F12, F11, F9, Esc, or Delete.
Select the USB storage device from the boot menu.
If everything is configured correctly, Ubuntu should load from the USB drive and display an option to try Ubuntu or start the installation.
You can choose the option to try Ubuntu first if you want to check that your keyboard, display, Wi-Fi, touchpad, and other hardware work correctly.
7: Start the Ubuntu Installation
When you’re ready, open the Ubuntu installer.
Select your language and keyboard layout, then continue through the installation options.
When you reach the installation type section, Ubuntu may detect your Windows installation and provide an option such as Install Ubuntu alongside Windows.
If that option is available and you’re comfortable allowing Ubuntu to manage the available unallocated space, it is usually the easiest choice for beginners.
If the installer does not offer the expected option, don’t randomly delete or format partitions. Manual partitioning requires more care because selecting the wrong partition can damage your Windows installation.
8: Complete the Ubuntu Setup
Continue through the installer and create your Ubuntu username and password.
The installer will copy the necessary Ubuntu files to your computer. Depending on your hardware and USB speed, this can take some time.
When installation is complete, Ubuntu will ask you to restart the computer.
Remove the USB drive when instructed so that the computer boots from its internal storage instead of starting the installer again.
9: Choose Windows or Ubuntu at Startup
After restarting, you should see a boot menu, commonly provided by GRUB.
This menu lets you select Ubuntu or Windows. Use the keyboard to highlight your preferred operating system and press Enter.
If you select Ubuntu, the computer loads Ubuntu. If you select Windows, it starts your existing Windows installation.
You can normally change the default operating system and other boot settings later if you want one operating system to start automatically.
10: Update Ubuntu and Check Windows
Once Ubuntu starts, connect to the internet and install available system updates.
Check that important hardware such as Wi-Fi, audio, Bluetooth, graphics, and the touchpad works correctly.
Then restart the computer and test Windows from the boot menu as well. Make sure your Windows installation starts normally and that your files are still accessible.
Testing both operating systems immediately after installation is a good way to catch configuration problems early.
FAQs
Can I dual boot Windows and Ubuntu on the same drive?
Yes. You can install Windows and Ubuntu on the same physical drive as long as there is sufficient storage and the drive is partitioned correctly. Ubuntu can use separate partitions while Windows keeps its own partitions.
Will dual-boot delete Windows?
It should not if you install Ubuntu correctly alongside Windows and select the appropriate unallocated space. However, partitioning always involves some risk, which is why creating a complete backup before starting is strongly recommended.
How much storage should I give Ubuntu?
Ubuntu can operate with relatively limited storage, but allocating around 30 GB or more gives you considerably more room for applications, updates, personal files, and future use.
Can I remove Ubuntu later?
Yes. You can remove Ubuntu, but simply deleting its partitions is not the complete process. You also need to make sure the Windows bootloader is restored correctly so the computer can start Windows normally.
Can I choose Windows as the default operating system?
Yes. The boot configuration can generally be changed so Windows starts automatically after the timeout unless you manually select Ubuntu.
Is dual boot better than using a virtual machine?
It depends on what you need. Dual booting generally provides better hardware performance, while a virtual machine is more convenient when you need to run Windows and Ubuntu at the same time.
Bottom Lines
Setting up a Windows and Ubuntu dual-boot system is a great option if you want the flexibility of both operating systems on one computer. The key is to avoid rushing through the partitioning and installation stages.
Start by creating a reliable backup, check your computer’s storage and firmware configuration, prepare the Ubuntu USB installer, and create unallocated space from Windows. During the Ubuntu installation, carefully select the option that installs Ubuntu alongside Windows or use the unallocated space for manual installation if you understand the partitioning process.
Once everything is installed, the boot menu will let you choose between Windows and Ubuntu whenever you start your computer. Take your time, double-check every partition before making changes, and test both operating systems after installation.
With those precautions, dual booting can give you a flexible setup for everyday Windows tasks and Linux-based work on the same PC.