Download

Download PostgreSQL for Windows — official installer guide

Official 64-bit PostgreSQL installer for Windows 10 and 11. Covers download, setup wizard, component selection, superuser password and post-install checks.

All versions →
Windows 10 / 1164-bit onlyFree (PostgreSQL License)Includes pgAdmin 4
This is an unofficial guide. The official installer is provided by EDB at postgresql.org/download/windows.

Install PostgreSQL on Windows step by step

  • 1

    Download the installer

    Use the download button above to get postgresql-18.3-3-windows-x64.exe. Approximately 300 MB, includes all components.

  • 2

    Run as Administrator

    Right-click the .exe → Run as administrator. Accept the UAC prompt. The setup wizard opens.

  • 3

    Select components

    Check: PostgreSQL Server, pgAdmin 4, Command Line Tools. Stack Builder is optional — skip unless you need extra drivers.

  • 4

    Set superuser password

    Enter a strong password for the postgres superuser. Store it securely — this is the master password for your database server.

  • 5

    Verify install

    cmd.exe — new window
    C:\> psql -U postgres -c "SELECT version();"
    Password for user postgres:
    PostgreSQL 18.3, compiled by Visual C++ build 1940, 64-bit
    If psql is not recognized, see Fix PATH issues.

Verify your PostgreSQL installation

cmd.exe
# Check service is running:
C:\> sc query postgresql-x64-18
STATE : 4 RUNNING
# Verify port 5432 is listening:
C:\> netstat -ano | findstr 5432
TCP 0.0.0.0:5432 0.0.0.0:0 LISTENING

Which PostgreSQL version should I install?

VersionStatusEnd of LifeRecommended for
18.3Latest stableNov 2029New installations
17.xSupportedNov 2029Existing 17 deployments
16.xSupportedNov 2028Existing 16 deployments
14.x or olderNear EOLNov 2026Plan upgrade now

Install questions

Why does the installer require Administrator rights?
PostgreSQL installs to Program Files and registers a Windows service, both of which require admin privileges. The service itself runs under NetworkService, not your admin account.
Can I install multiple PostgreSQL versions side by side?
Yes. Each major version installs to its own directory and uses a different port. You can run PostgreSQL 16, 17 and 18 simultaneously on the same machine.
What is Stack Builder and do I need it?
Stack Builder downloads additional drivers and tools (JDBC, .NET connector, PostGIS). Skip it during install and run it later from the Start menu if needed.
psql is not recognized after installing
Open a new Command Prompt or PowerShell window after install. PATH changes only take effect in new terminal sessions. If still failing, see Fix PATH issues.

Need to install without internet?

Download once and transfer via USB to any machine.

Offline installer