This question already has an answer here:

What is the best guide to root the "Nexus 5" 4.4 Kitkat version? There seem to be so many guides and I'm not sure which one is the easiest and quickest to follow.

Also when rooted, where can I get custom roms?

Also what if I wanted to flash it back to Stock 5.2 lollipop, where do I get that?

marked as duplicate by bmdixon, onik Apr 22 '15 at 5:52

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

It was actually very easy to root and flash a new rom or stock rom to it.

First thing is rooting your device by doing the following:

  1. Make sure your Bootloader is unlocked so u can flash a new one to it. (fastboot oem unlock)
  2. Install JDK and Android SDK to get access to the command "fastboot"
  3. Download the superuser.zip file to your SD card on your phone
  4. Download the CWM (clockwork recovery) or other recovery image (http://www.teamandroid.com/2014/06/19/root-nexus-5-android-444-ktu84p-kitkat/2/)

  5. Flash the recovery image to 'fastboot flash recovery asdfasdf.img'

  6. Reboot to RECOVERY MODE and install the superuser.zip file
  7. Flash the new rom image by getting the zip file and doing a "fastboot -w update romfile.zip"

Note: You might have to also flash the proper bootloader version and radio version or else it will throw an error. these files are usually along with the package...

Not the answer you're looking for? Browse other questions tagged or ask your own question.