Running wmic memorychip get memorytype prints one number per memory module, and that number is a code, not a name: 26 means DDR4, 24 means DDR3, 20 means DDR, and 0 means unknown. DDR5 has no code in Microsoft's MemoryType table, so for newer machines read SMBIOSMemoryType instead, where 34 means DDR5.
The two properties look similar and are easy to mix up. This article lists the codes from Microsoft's documentation and from the SMBIOS table that Windows reads, shows how to query both properties, and explains why the first one can mislead you on a modern PC.
The command and what it prints
wmic memorychip get memorytype
Example output on a machine with two DDR4 modules:
MemoryType
26
26
Each line is one installed module. The memorychip alias reads the Win32_PhysicalMemory WMI class, so the property you are asking for is the MemoryType member of that class. To see which slot each number belongs to, ask for more columns:
wmic memorychip get devicelocator, memorytype, smbiosmemorytype
Example output (the slot names depend on your board):
DeviceLocator MemoryType SMBIOSMemoryType
DIMM_A1 26 26
DIMM_B1 26 26
MemoryType codes from Microsoft's table
Microsoft's documentation describes MemoryType as "a CIM value that is mapped to the SMBIOS value". The values it defines are below. The range 2 to 19 covers older and special-purpose memory that you will rarely meet in a PC; the entries most people care about are at the end.
| Code | Meaning |
|---|---|
| 0 | Unknown |
| 1 | Other |
| 2 | DRAM |
| 3 | Synchronous DRAM |
| 4 | Cache DRAM |
| 5 | EDO |
| 6 | EDRAM |
| 7 | VRAM |
| 8 | SRAM |
| 9 | RAM |
| 10 | ROM |
| 11 | Flash |
| 12 | EEPROM |
| 13 | FEPROM |
| 14 | EPROM |
| 15 | CDRAM |
| 16 | 3DRAM |
| 17 | SDRAM |
| 18 | SGRAM |
| 19 | RDRAM |
| 20 | DDR |
| 21 | DDR2 (documented as "may not be available") |
| 22 | DDR2 FB-DIMM (documented as "may not be available") |
| 24 | DDR3 (documented as "may not be available") |
| 25 | FBD2 |
| 26 | DDR4 |
There is no 23 in the table, and nothing above 26. That ceiling is the root of most confusion: the table was written before newer memory types existed, so it has no row for them.
Why memorytype is the wrong property for DDR5
Windows fills MemoryType by converting the raw type that the firmware reports. Microsoft's table has no DDR5 entry, so there is nothing for DDR5 to map to. If you are on a DDR5 or LPDDR5 machine and memorytype shows 0 or a number you cannot find in the table above, the property is not telling you the memory is broken or unknown in any practical sense. It is telling you the mapping does not cover your hardware.
The fix is to ask for the raw code. Microsoft describes SMBIOSMemoryType as "the raw SMBIOS memory type", and it comes from the Type 17 (Memory Device) record that the BIOS or UEFI provides:
wmic memorychip get smbiosmemorytype
Microsoft notes that SMBIOSMemoryType is not supported before Windows Server 2016 and Windows 10. On Windows 7 or 8.1 only MemoryType is available.
SMBIOSMemoryType codes: DDR3 to DDR5 and LPDDR
The raw values follow the SMBIOS Memory Device type list. The names below are the ones the dmidecode tool prints for each value, which makes them a handy cross-check on Linux. The table gives the decimal number first, because that is what WMIC prints, and the hexadecimal number second, because that is how the SMBIOS documents write it.
| Decimal | Hex | Memory type |
|---|---|---|
| 18 | 0x12 | DDR |
| 19 | 0x13 | DDR2 |
| 20 | 0x14 | DDR2 FB-DIMM |
| 24 | 0x18 | DDR3 |
| 25 | 0x19 | FBD2 |
| 26 | 0x1A | DDR4 |
| 27 | 0x1B | LPDDR |
| 28 | 0x1C | LPDDR2 |
| 29 | 0x1D | LPDDR3 |
| 30 | 0x1E | LPDDR4 |
| 31 | 0x1F | Logical non-volatile device |
| 32 | 0x20 | HBM |
| 33 | 0x21 | HBM2 |
| 34 | 0x22 | DDR5 |
| 35 | 0x23 | LPDDR5 |
| 36 | 0x24 | HBM3 |
Notice that the two tables disagree for low numbers. In Microsoft's MemoryType table, 20 is DDR and 21 is DDR2. In the raw SMBIOS list, 20 (0x14) is DDR2 FB-DIMM and DDR is 18. The numbers agree only from DDR3 upward: 24 is DDR3 and 26 is DDR4 in both. Always check which property a number came from before you look it up.
A quick way to decode the number
For a modern PC, three values cover nearly every case in SMBIOSMemoryType:
24: DDR3.26: DDR4.34: DDR5.
Laptops with soldered memory often report a low-power type instead. 30 is LPDDR4 and 35 is LPDDR5. These are not interchangeable with the desktop types, and soldered LPDDR cannot be swapped for a module, so a code in the 27 to 30 or 35 range on a thin laptop usually means the memory cannot be upgraded.
Use PowerShell now: WMIC is gone from current Windows 11
Microsoft deprecated WMIC in Windows 10 version 21H1. Its documentation also says that starting in August 2026, Windows 11 versions 24H2 and 25H2 no longer include the utility and it cannot be added back as a Feature on Demand; it was already absent from new installations of those versions. Only the WMIC tool is affected. WMI itself, the data source behind it, is still supported.
If your command fails with 'wmic' is not recognized as an internal or external command, operable program or batch file., query the same class from PowerShell:
Get-CimInstance Win32_PhysicalMemory | Select-Object DeviceLocator, MemoryType, SMBIOSMemoryType
Example output on a DDR5 laptop (the exact MemoryType value for hardware outside Microsoft's table can vary, which is why the raw column is there):
DeviceLocator MemoryType SMBIOSMemoryType
------------- ---------- ----------------
Controller0-ChannelA/B-DIMM0 0 34
Controller1-ChannelA/B-DIMM0 0 34
To turn the raw number into a name directly, use a small lookup in the same command:
$names = @{ 24 = 'DDR3'; 26 = 'DDR4'; 30 = 'LPDDR4'; 34 = 'DDR5'; 35 = 'LPDDR5' }
Get-CimInstance Win32_PhysicalMemory | ForEach-Object {
$code = [int]$_.SMBIOSMemoryType
$name = if ($names.ContainsKey($code)) { $names[$code] } else { "unlisted ($code)" }
"$($_.DeviceLocator): $name"
}
The lookup only lists five types on purpose. If your code is not in it, the script prints unlisted with the number, and you can find it in the SMBIOS table above rather than getting a wrong name.
Check the type without any command
If you only want to know whether to buy DDR4 or DDR5, you do not need WMI. Other ways to inspect installed memory are covered in how to check system memory on Windows, and the speeds the same class reports are explained in how to check RAM speed. For what separates the two generations in practice, see DDR4 vs DDR5. The memory type also has to match what your motherboard or laptop supports: DDR4 and DDR5 modules are not electrically or physically interchangeable.
Troubleshooting odd results
- The output is blank or shows only the header. The values come from the firmware's Memory Device records, so if the firmware does not supply one, there is nothing to show. Try the PowerShell version to rule out a WMIC problem.
- A value of 0 or 1. These mean Unknown and Other in Microsoft's table. On newer hardware this is usually the mapping gap described above, so read
SMBIOSMemoryType. - Two modules show different codes. Compare the same property for both modules. If you mixed
MemoryTypefrom one run withSMBIOSMemoryTypefrom another, the numbers will differ for DDR and DDR2 even on identical memory. - The command is not recognized. WMIC has been removed from your Windows build. Use the PowerShell command above.
Frequently asked questions
- What does wmic memorychip get memorytype return for DDR4?
- It returns 26, which is the DDR4 entry in Microsoft's MemoryType table for the Win32_PhysicalMemory class. The same number appears in SMBIOSMemoryType, because 26 (0x1A) is also the raw SMBIOS code for DDR4.
- Why does memorytype show 0 or a number I cannot find in the table?
- MemoryType is a CIM value that Windows maps from the raw SMBIOS code, and Microsoft's table stops at 26 (DDR4). Memory types added to SMBIOS later, such as DDR5 (34), have no entry in that table. Query SMBIOSMemoryType instead, which holds the raw code.
- Is 24 DDR3?
- Yes. Microsoft's table lists 24 as DDR3 with the note that it may not be available. The raw SMBIOS code for DDR3 is 0x18, which is 24 in decimal, so both properties agree for DDR3.
- Does wmic still work on Windows 11?
- Not on current builds. Microsoft states that starting in August 2026 Windows 11 versions 24H2 and 25H2 no longer include WMIC and it cannot be added back as a Feature on Demand. The PowerShell Get-CimInstance command reads the same Win32_PhysicalMemory data.