sodcalculator

10 Tech How-To

How to Fine Tune DDR4 RAM for Ryzen CPUs

Guide 10-45056 · Updated · Step by step

Fine-tuning your DDR4 RAM on a Ryzen system can unlock noticeable performance gains, especially in games and memory-sensitive workloads. This guide walks you through the process of adjusting your memory frequency, timings, and voltages in the BIOS to achieve a stable, optimized configuration. Before you start, ensure your motherboard supports memory overclocking (all Ryzen chipsets do) and that you have a reliable way to test stability, such as MemTest86 or the built-in Windows Memory Diagnostic.

What You’ll Need

  • A Ryzen CPU and compatible AM4 motherboard (B450, X470, B550, X570, etc.)
  • DDR4 RAM modules (ideally rated for 3200MHz or higher)
  • Access to your BIOS/UEFI (usually by pressing Del or F2 during boot)
  • A USB drive with MemTest86 (free version) or Windows Memory Diagnostic
  • CPU-Z or Ryzen Master (for checking timings and settings in Windows)
  • Patience and a notepad to record your settings

Step-by-Step

  1. Check your RAM’s rated specs. Look at the label on your RAM or the product page. Note the rated frequency (e.g., 3200MHz), timings (e.g., 16-18-18-38), and voltage (e.g., 1.35V). These are your target values for the XMP/DOCP profile.
  2. Enter your BIOS. Restart your PC and press the BIOS key (Del, F2, or F10 depending on your motherboard) repeatedly during startup.
  3. Enable the XMP/DOCP profile. In the BIOS, find the memory settings (often under “Overclocking”, “Ai Tweaker”, or “OC”). Look for “XMP” (Intel) or “DOCP” (AMD) and select the profile that matches your RAM’s rated speed. Save and exit, then boot into Windows.
  4. Verify the profile is active. Open CPU-Z and check the “Memory” tab. Confirm the frequency is running at the rated speed (e.g., 3200MHz) and that the timings match the XMP profile. If not, return to BIOS and manually set the frequency and timings.
  5. Test stability at XMP. Run MemTest86 from a USB drive for at least one full pass (or 4+ hours). Also run a stress test like Prime95 or AIDA64 for 30 minutes. If you get errors, your RAM may not be stable at XMP out of the box—this is common with Ryzen. Proceed to manual tuning.
  6. Manually set frequency and timings. In BIOS, set the memory frequency to your target (e.g., 3200MHz). Then, manually enter the primary timings (CL, tRCD, tRP, tRAS) from your RAM’s spec. Set the voltage to the rated value (usually 1.35V). Save and boot.
  7. Test again. Repeat the stability test. If it passes, you can try tightening timings for better performance. If it fails, you may need to increase voltage slightly (up to 1.4V for daily use, but be careful) or relax timings.
  8. Tighten timings (optional). Once stable at XMP, you can try lowering the primary timings by 1 (e.g., from 16 to 15) or adjusting secondary timings like tRFC. Test after each change. This is time-consuming but can yield a few percent more performance.
  9. Adjust the Infinity Fabric clock (FCLK). For Ryzen, the Infinity Fabric clock should be set to match your memory frequency in a 1:1 ratio for best performance. For DDR4-3200, set FCLK to 1600MHz. For DDR4-3600, set FCLK to 1800MHz. Some CPUs can handle higher FCLK, but 1800MHz is a safe target. Test stability with a stress test.
  10. Final stability test. Run MemTest86 for 4+ hours or overnight, and run a demanding game or workload. If stable, your tuning is complete. If not, go back and relax timings or lower frequency.

Common Mistakes

  • Copying XMP timings without checking the memory controller. Not all CPUs can handle high frequencies or tight timings. If you get errors, back off.
  • Setting voltage too high. DDR4 is safe up to 1.5V for short benching, but for daily use, keep it under 1.4V to avoid degrading your RAM or CPU memory controller.
  • Ignoring the FCLK. Leaving FCLK at auto can result in a 2:1 ratio, which hurts performance. Set it manually to match.
  • Skipping stability tests. A quick boot into Windows doesn’t mean it’s stable. Always run MemTest86.
  • Using the wrong BIOS slot. Make sure you’re changing the memory settings, not the CPU overclocking settings.

Tips

  • Update your motherboard BIOS to the latest version—it often improves memory compatibility.
  • Use the “Ryzen DRAM Calculator” (a free tool) to get suggested timings for your specific RAM and CPU. It’s a great starting point.
  • Write down your working settings before making changes. If you get a no-boot, you can reset the CMOS and re-enter them.
  • If your system fails to boot after a change, don’t panic. Clear the CMOS using the jumper or button on your motherboard, or remove the battery for 30 seconds.
  • For best results, use RAM that’s on your motherboard’s QVL (Qualified Vendor List).

Troubleshooting

System won’t boot after changing settings. Clear the CMOS (see above) and start over with a lower frequency, like 2133MHz, then work your way up.

MemTest86 shows errors. Increase voltage slightly (in 0.05V steps) or relax the primary timings by 1. If errors persist, lower the frequency.

Windows blue screens under load. This is usually a stability issue. Revert to XMP or lower settings and test again.

Performance is worse than before. Check that FCLK is set correctly. Also, verify that your RAM is running in dual-channel mode (check CPU-Z).

BIOS resets itself. Some motherboards have a feature that resets settings after a failed boot. Disable it if you want to keep your settings, but it’s safer to leave it on.

Frequently Asked Questions

Is it safe to overclock RAM on Ryzen?

Yes, as long as you stay within safe voltage limits (under 1.4V for daily use) and test stability. Overclocking RAM is generally safe and doesn’t void your warranty, though extreme voltages can degrade components.

What is the best frequency for Ryzen 3000/5000?

DDR4-3600 with FCLK at 1800MHz is considered the sweet spot for Ryzen 3000 and 5000 series, as it maintains a 1:1 ratio with the Infinity Fabric and offers the best price-to-performance.

Why does my RAM run at 2133MHz instead of its rated speed?

That’s the default JEDEC speed. You need to enable XMP/DOCP in BIOS to run at the rated speed. If XMP fails, you may need to manually set the frequency and timings.

Can I mix different RAM kits?

Mixing kits is not recommended, as they may have different dies, timings, or voltage requirements, leading to instability. It’s best to use a matched dual-channel kit.

What is the difference between XMP and DOCP?

XMP is Intel’s eXtreme Memory Profile, and DOCP is AMD’s version. They are essentially the same—a pre-defined overclocking profile stored on the RAM. On AMD boards, you’ll often see DOCP or XMP options.

How long should I run MemTest86?

At least one full pass (which can take 1-2 hours) is a good start. For a high-confidence test, run it overnight or for 8+ hours. If you’re just tuning, a single pass is usually enough to catch obvious errors.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →