keepcalculator

06 Numbers and Powers

Raspberry Pi Power & Storage: How to Choose

Card No. 06·6050 · Updated · Standard formula, shown below

This guide walks you through picking a power supply and storage (microSD card or SSD) for any Raspberry Pi model. You will learn what specifications matter, how to match them to your Pi’s needs, and how to avoid common pitfalls that cause crashes or data corruption.

What You’ll Need

  • Your Raspberry Pi model (check the board or the order confirmation)
  • A list of the peripherals you plan to connect (keyboard, mouse, Wi-Fi dongle, USB drives, etc.)
  • An idea of what the Pi will be used for (light desktop, media server, retro gaming, etc.)
  • Access to the official Raspberry Pi documentation if you need exact specs for your model

Step-by-Step

  1. Identify your Raspberry Pi model. The model determines the required voltage, recommended current, and storage type. For example, the Raspberry Pi 5 uses a USB-C power input and a higher current (5V/5A) than earlier models, while the Raspberry Pi 4 also uses USB-C but at 5V/3A. The Raspberry Pi 3 and earlier use micro-USB. Check the official specifications for your exact board.
  2. Determine your total power draw. Add up the current drawn by the Pi itself (see the official specs) plus all powered peripherals. Each USB device can draw up to 500mA (USB 2.0) or 900mA (USB 3.0). For example, a Raspberry Pi 4 (needs ~600mA idle, up to 1.2A under load) with two USB 2.0 devices (1A total) would need at least 2.2A from the supply. Always pick a supply with a margin of at least 20% above your calculated total.
  3. Choose a power supply with the correct voltage and connector. Most Raspberry Pi models need 5V DC. The connector must match: micro-USB for Pi 1, 2, and 3; USB-C for Pi 4 and 5. A supply that provides 5V and at least the recommended current (e.g., 3A for Pi 4, 5A for Pi 5) is ideal. Avoid using phone chargers that may not deliver stable voltage under load.
  4. Check for voltage stability. Even if a supply is rated for the right current, it must maintain 5V without significant drops. Look for supplies that mention “regulated� or “low ripple.� A multimeter can verify actual voltage, but many people rely on reputable brands. If you see the low-voltage warning icon (a lightning bolt) on screen, the supply is not adequate.
  5. Select storage type: microSD card or SSD. For most uses, a high-quality microSD card is sufficient. For heavy read/write workloads (databases, file servers, frequent logging), an SSD via USB is more reliable and faster. The Raspberry Pi 5 supports PCIe NVMe SSDs via a special HAT, but USB SSDs work on all models.
  6. Pick a microSD card with sufficient speed class. Look for cards rated A1 or A2 (Application Performance Class) and at least Class 10 (UHS-I). A2 cards are better for random read/write, which is common in operating systems. Avoid “no-name� or very cheap cards; they often fail quickly.
  7. Choose the right capacity. A 16GB card is the minimum for Raspberry Pi OS Lite, but 32GB is a comfortable minimum for the full desktop. If you plan to store media or large datasets, consider 64GB or 128GB. SSDs are available in 120GB and up; choose based on your storage needs.
  8. Consider an SSD for reliability. If your project writes data constantly (e.g., a home assistant, a network drive, or a security camera), an SSD will last much longer than a microSD card. Use a USB 3.0 SSD enclosure for best speed. For Pi 5, a PCIe NVMe HAT is the fastest option.
  9. Buy from a reputable source. Counterfeit cards and power supplies are common. Purchase from official distributors or well-known electronics retailers. Check reviews for any signs of fakes (e.g., reported capacity errors).
  10. Test your setup. After booting, check for the low-voltage warning. Run a simple stress test (e.g., open several applications or run stressberry) to ensure the system does not crash. For storage, run sudo fstrim -v / periodically if using an SSD to maintain performance.

Common Mistakes

  • Using a phone charger rated lower than needed. Many phone chargers output 5V/1A or 2A, which is insufficient for a Pi 4 or 5 under load. This causes undervoltage and random reboots.
  • Ignoring the connector type. Plugging a micro-USB cable into a USB-C port (or vice versa) can damage the port or fail to power the board.
  • Buying a “fastâ€� card without checking A1/A2 rating. A card with high sequential read speed may still have poor random I/O, making the system feel sluggish.
  • Using a cheap microSD card for a server. The card will wear out quickly due to constant writes. This is a leading cause of “mysteriousâ€� crashes.
  • Overlooking the power draw of USB peripherals. A wireless keyboard dongle, external drive, and fan can easily exceed the supply’s capacity.
  • Assuming all USB-C supplies are equal. Some USB-C chargers use different power profiles; a charger that only outputs 5V/2A won’t power a Pi 5 properly.

Tips

  • For the Raspberry Pi 5, use the official 27W USB-C power supply or any high-quality supply that provides 5V/5A. The Pi 5 also supports Power over Ethernet (PoE) with a HAT, which can simplify cabling.
  • If you’re using a microSD card, enable the “flash writeâ€� reduction features in the OS. For example, use log2ram to keep logs in RAM and reduce writes.
  • For SSDs, enable TRIM (if not already enabled) to maintain performance. On Raspberry Pi OS, run sudo systemctl enable fstrim.timer.
  • Use a powered USB hub for multiple high-power peripherals. This prevents the Pi’s internal voltage regulators from being overloaded.
  • Monitor your Pi’s voltage and temperature with vcgencmd measure_volts and vcgencmd measure_temp to ensure stable operation.
  • Keep a backup of your SD card image. Tools like dd or the Raspberry Pi Imager’s backup feature can save you hours if the card fails.

Troubleshooting

If you see a lightning bolt icon or “Low voltage� warning: Your power supply is not providing enough voltage or current. Replace it with a higher-rated supply (e.g., 5V/3A for Pi 4, 5V/5A for Pi 5). Also check the cable—thin or long cables cause voltage drops.

If the Pi reboots randomly under load: This is usually a power issue. Disconnect non-essential peripherals and test. If it still reboots, try a different supply. Also check that the USB cable is of good quality and short.

If the Pi does not boot at all: Ensure the microSD card is properly inserted (the metal contacts face the board). Re-image the card with the latest Raspberry Pi OS using the official Imager. If using an SSD, make sure it is formatted correctly and that the boot order is set (on Pi 5, you may need to update the EEPROM).

If the system is very slow: Check if the microSD card is failing. Run dmesg for I/O errors. Also, verify that the card is A1/A2 rated. If the card is old, replace it.

If an SSD is not detected: Try a different USB cable or enclosure. Some enclosures require USB 3.0 and may not work on a Pi’s USB 2.0 port. On Pi 5, ensure the PCIe HAT is properly seated and the ribbon cable is connected correctly.

Frequently Asked Questions

Can I use any USB-C charger for my Raspberry Pi 4?

Only if it provides 5V and at least 3A. Many USB-C chargers are designed for laptops and use different voltage profiles (e.g., 20V), which the Pi cannot use. Check the label for the 5V output rating.

What is the difference between A1 and A2 microSD cards?

A2 cards have higher random read/write speeds, which improves performance for small file operations that are common in operating systems. A1 is the minimum recommended for Raspberry Pi OS, but A2 is better.

Is an SSD worth it for a Raspberry Pi?

For general desktop use, a good microSD card is fine. For servers, databases, or heavy logging, an SSD is significantly more reliable and faster. The extra cost is justified if you value uptime and speed.

How do I know if my power supply is causing problems?

Look for the lightning bolt icon in the top-right corner of the screen (Raspberry Pi OS) or run vcgencmd get_throttled. A return value of 0 means no issues; a non-zero value indicates undervoltage or thermal throttling.

Can I use a power bank to power my Raspberry Pi?

Yes, if the power bank can output 5V at the required current (e.g., 3A for Pi 4). Some power banks have a “quick charge� mode that outputs higher voltages; ensure it is set to 5V. Also note that power banks may shut off if the current draw is too low, which can happen when the Pi is idle.

What is the maximum storage capacity supported by Raspberry Pi OS?

Raspberry Pi OS supports microSD cards up to 2TB (the maximum for SDXC), and SSDs up to any size that the file system supports (typically 16TB with ext4). However, very large cards may need to be formatted manually if the OS doesn’t recognize the full capacity.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →