Migrate to RunxBuild and earn up to $50 in hosting credit on your first deposit.

Calculate your savings
unxBuild

How to Check What RAM Type You Have (DDR4, DDR5) on Windows and Linux

Sean

Platform Writer

Jul 15, 2026
6 min read

You can read your RAM type without unscrewing anything. On Windows, wmic memorychip get memorytype,speed,capacity or the Task Manager Memory tab tells you. On Linux, sudo dmidecode -t memory prints the generation, speed, and slot layout. The generation - DDR3, DDR4, DDR5 - is the number that matters, because it is not interchangeable: a DDR5 module will not seat in a DDR4 board, and vice versa. So before you buy an upgrade, the type is the first thing to confirm, and it takes one command to do it.

How to Check What RAM Type You Have (DDR4, DDR5) on Windows and Linux

The reason people ask this is almost always an upgrade. And the one fact that decides whether a stick of RAM will even fit is the generation - not the capacity, not the speed.

Table of contents

On Windows: Task Manager and wmic

The fastest read is Task Manager. Open it, go to the Performance tab, click Memory, and the top-right shows the type (DDR4, DDR5) and speed.

For the full picture from a terminal, run in Command Prompt:

wmic memorychip get memorytype,speed,capacity,manufacturer

speed and capacity are self-explanatory. memorytype returns a numeric code, and the catch is that on many systems it reports 0 or an outdated value for DDR4/DDR5. If it does, do not trust it - fall back to the Task Manager reading or a tool like CPU-Z, which reports the generation reliably. wmic is being deprecated in newer Windows too, so PowerShell’s Get-CimInstance Win32_PhysicalMemory is the forward-looking equivalent.

On Linux: dmidecode is the source of truth

Linux reads the same hardware SPD data the BIOS does, via dmidecode:

sudo dmidecode -t memory

Scroll to the Memory Device entries - one per slot. The useful fields:

  • Type: DDR4, DDR5, etc. This is your generation.
  • Speed / Configured Memory Speed: the rated and actually-running MHz.
  • Size: the capacity in that slot (No Module Installed means empty).
  • Locator: which physical slot it is.

It needs sudo because it reads low-level firmware tables. If dmidecode is not installed, sudo apt install dmidecode (Debian/Ubuntu) or the equivalent. A lighter alternative is sudo lshw -short -C memory, which is less detailed but does not require reading the raw DMI table.

Reading the generation, speed, and slots together

Three facts come out of these commands, and each answers a different upgrade question:

  • Generation (DDR4 vs DDR5) decides compatibility. It is set by your motherboard - you cannot mix generations, and you cannot put DDR5 in a DDR4 board.
  • Speed (MHz) decides performance and whether new sticks should match your existing ones. Mismatched speeds run at the slower module’s rate.
  • Slots used vs total decides whether you can just add RAM or must replace. Two used of four slots means room to add; all slots full means swapping for larger modules.

Get all three before buying. “I have 8 GB of DDR4” is not enough to order an upgrade - you also need the speed to match and a free slot (or a plan to replace what is there).

Why the type is the fact that matters

Capacity is the number people fixate on, but the type is what constrains you. RAM generations are physically and electrically incompatible:

  • The notch (key) on the module is in a different position per generation, so it will not even seat in the wrong slot.
  • The voltage and signalling differ, so a board built for one generation cannot drive another.

This is why the first step of any RAM upgrade is confirming the generation, not shopping for capacity. Order 32 GB of DDR5 for a DDR4 machine and you have bought parts that cannot be installed. On a laptop it is worse - many solder the RAM, so the answer to “what type” is sometimes “whatever shipped, and you cannot change it.” One command up front saves that whole detour.

Servers and cloud instances

On a physical server the same commands apply - dmidecode -t memory is the standard tool, and it also reports ECC support, which matters for anything you care about staying up.

On a cloud VM, the question changes shape. You do not have a physical slot to upgrade; you resize the instance and the provider gives you a machine with more (virtualised) memory. dmidecode inside a VM may report generic or hypervisor-supplied values rather than real DIMM details, because there is no real DIMM - just an allocation. So for cloud instances, “how much RAM” is a control-panel decision, not a hardware one, and the relevant skill is right-sizing the instance rather than reading module types. That is a budgeting exercise, and it is where modelling the cost of each size before you resize actually pays off.

How this fits the rest of the stack

Whatever you decide here, the cost of it eventually shows up as a bill. The RunxBuild hosting calculator is the right place to model that before committing: the compute, the database, the storage, the bandwidth, the worker - each one is a separate line item, and the real cost of a platform is the sum, not the headline number. The RunxBuild dashboard is where the team sees the actual usage once it is running.

Useful related references:

FAQ

How do I check my RAM type on Windows?

Open Task Manager, go to the Performance tab, and click Memory - the type (DDR4, DDR5) and speed show at the top right. From a terminal, run wmic memorychip get memorytype,speed,capacity, though the memorytype code is unreliable on some systems; CPU-Z or the Task Manager reading is more dependable.

How do I check RAM type on Linux?

Run sudo dmidecode -t memory and read the Type field under each Memory Device entry - it shows DDR4, DDR5, the speed, and which slots are populated. It needs sudo because it reads firmware tables. sudo lshw -short -C memory is a lighter alternative.

Can I mix DDR4 and DDR5 RAM?

No. The generations are physically and electrically incompatible - the module notch is in a different position and the voltage differs, so a DDR5 stick will not seat in a DDR4 board and vice versa. Your motherboard supports one generation only, which is why checking the type comes before any upgrade.

Does RAM speed need to match when I add more?

It helps. If you mix modules of different speeds, they all run at the slowest module’s rate, so you lose the benefit of the faster stick. For the best result, match the speed of your existing RAM, or replace all modules together with a matched set.

How do I check RAM type on a cloud server?

On a cloud VM there is no physical module to inspect - dmidecode may report generic hypervisor values. Memory on a cloud instance is defined by the instance size you choose, so you change it by resizing the instance in the provider’s control panel rather than by swapping hardware.

#ram#memory#hardware#linux#dev-infra