Memory

DDR4 vs DDR5 Compatibility: Which RAM Fits Your Motherboard?

For an existing PC, the motherboard decides whether you can buy DDR4 or DDR5. For a new build, choose the CPU, board and memory together. DDR5 is not a drop-in upgrade for a DDR4 slot.

Start here

Read the motherboard's memory specification before shopping. Even when the CPU supports both generations, a DDR4 board still needs DDR4 modules.

Can DDR5 RAM go into a DDR4 motherboard?

No. The module layout and notch position differ, as Kingston's DDR5 documentation explains. Similar dimensions or the same desktop pin count do not make the modules interchangeable. If the notch will not line up, stop rather than pressing harder. To move an ordinary DDR4 desktop to DDR5, you need a compatible DDR5 motherboard; a BIOS setting will not convert the existing slots.

Why some CPUs list both generations

The Core i5-12400F supports both DDR4 and DDR5 because it can work with different motherboard designs. ASUS specifies DDR4 for the PRIME B660M-A D4, so that pairing needs DDR4. A DDR5 kit is the wrong purchase for it, even though DDR5 appears on the CPU's specification page. Keeping the processor and moving to DDR5 means choosing another supported board, then checking its CPU and BIOS requirements.

Specification you seeWhat it means
CPU supports DDR4 and DDR5The board design decides which supported memory path is available.
Motherboard specifies DDR4Choose compatible DDR4 modules for its slots.
Motherboard specifies DDR5DDR4 modules cannot be reused in those slots.

Check the module type, not just DDR5 on the box

Next, match the kind of module. A desktop DIMM, laptop SO-DIMM and registered server module are different products, even if all say DDR5. Look up the complete kit part number in the board's support list or the memory maker's finder. Be particularly careful with cheap used server RAM: check buffered or unbuffered requirements and any CPU-dependent ECC support. DDR5's on-die error correction does not, by itself, provide system-level ECC.

Choose capacity and stick count together

Choose capacity before chasing speed. For a 32 GB setup, a matched 2 × 16 GB kit is one possible arrangement; the board must support its generation, module capacities and slot population. Follow the manual's slot order. Two separately purchased 16 GB modules may add up to the same capacity, but they have not been validated together as that kit. Check both the total-capacity limit and the supported arrangement rather than relying on a single 'maximum RAM' figure.

Treat advertised speed as a separate decision

A lower first-boot speed does not necessarily mean you bought the wrong RAM. Kits can have default settings and faster optional profiles. ASUS separates standard rates from OC entries in the D4 board's specification; MSI also makes its B650 GAMING PLUS WIFI rates conditional on the memory configuration. Confirm the kit's default specifications first. Decide about XMP or EXPO after the machine is working, using the board's profile support and qualification list.

Upgrade an existing DDR4 PC or replace the platform?

If the current PC runs out of RAM during your work, a supported DDR4 capacity upgrade may solve that without replacing the board. If you are changing platforms anyway, compare CPU, motherboard and RAM as one purchase, including any new cooler mount. First check what is slowing the application: a storage problem will not disappear just because you replace DDR4 with DDR5. Spend on the limitation you can observe.

Verify the order before opening the packaging

Before opening the kit, compare its label with the invoice and motherboard specification: DDR generation, capacity per stick, number of sticks and full part number. Retailers sometimes put DDR4 and DDR5 variants on the same product page, so inspect the selected variant instead of its shared photograph. Catching a wrong order now is much easier than discovering it with the RAM halfway into a slot.

Your checklist

  • Motherboard memory generation confirmed.
  • Desktop or laptop form factor and buffered/ECC requirements checked.
  • Exact kit capacity and module count checked against support information.
  • Default speed distinguished from optional profile speed.
  • Selected retailer variant matches the full kit part number.

Sources and further reading

Kingston: DDR5 memory standard and module changesIntel: Core i5-12400F memory specificationsASUS: PRIME B660M-A D4 specificationsMSI: B650 GAMING PLUS WIFI memory specificationsKingston: desktop and notebook memory support

How RigAtlas uses sources

Spotted an error? Report a correction with the page URL and the detail to check.

Choose RAM for your actual motherboard

Choose your motherboard and RAM, then review their compatibility notices. Use the board's manual and support list for the recommended slots, supported module count and memory settings.

Work with your own parts

Apply the checks to a starter build

These are editable parts lists. Check current local prices and unresolved compatibility details before buying.

Put these checks into context

Look at an exact model

Read the model-specific limits before putting a candidate in your list.

Compare a specific change