Are you supposed to say the bracha al netilas yadayim after doing negel vasser after waking up or going to the bathroom?
You are supposed to say the Berachah upon washing your hands in the morning. (Shulchan Aruch O"C 4:1)
It seems from the Shulchan Aruch (O"C 7:1-2) that you do not need to make a Berachah even if you find that you need to wash your hands after using the bathroom, because you are only required to wash then for cleanliness - in fact, you may not need to wash at all, depending on the condition of your hands afterwards. The GR"A (ibid., S"K 2) explains that this is because the sages enacted the law of washing upon rising because we are like a new creation, as well as before eating (although he doesn't explain this last point), but not for any other purpose.
However, I have heard that, according to some, you are supposed to say the Berachah after using the bathroom, depending on what you were doing in the bathroom, I have not seen a source for this idea.
IIRC the gra is referencing a teshuvat harashba where he says the bracha is on waking up like a new being. This opinion argues on nearly all other rishonim (see for example rambam) that you need to make one when you wash for davening (all three prayers). So the beit yosef ruled safek brachot lehakel and only to make one in the morning, but it would have to be on the one for davening as well which would mean post bathroom.– Double AA ♦Oct 5, 2012 at 14:42
@DoubleAA And the Ramban and the Rosh. Jun 23, 2017 at 1:24
@ShmuelBrin and them on which side– Double AA ♦Jun 23, 2017 at 1:58
@DoubleAA beta.hebrewbooks.org/tursa.aspx?a=oc_x20 Jun 23, 2017 at 2:01
@DoubleAA see also the Beis Yosef there D"H Kasuv Jun 23, 2017 at 2:06
I was taught that the "best" way is to wash negel vaser in bed without a bracha, then go to the bathroom, get dressed or at least be decent, wash again, say al netilas yadayim, say asher yotzar, and then say the rest of brochas. I used to do it a different way that involved only washing once, as I think a lot of people do. I don't remember when you say the bracha if done that way, but I think it is still at the end.