Mixing RAM sizes works, but you lose dual-channel.
Yes, you can use two 8GB sticks and one 16GB stick to get 32GB total. The computer will run—it won’t explode. But it won’t be as fast as four matched sticks or two matched pairs.
Modern motherboards use dual-channel memory to double bandwidth. That works best when sticks are identical in size, speed, and timings. With a 16GB and two 8GBs, the system will run in “flex mode” — the first 8GB of the 16GB stick pairs with one 8GB stick, and the remaining 8GB on the big stick runs single-channel. You’ll see a performance hit in memory-intensive tasks like gaming or video editing. For basic office work, you won’t notice.
Check your motherboard manual. Some boards are picky about mixing densities. If it works, great. If the system crashes or won’t boot, swap the DIMM order or update the BIOS. Or just buy two 16GB sticks and be done with it.
Mixing is fine for a budget build, but matched pairs are worth the extra $20.
