I'm confused. If you were at a level where you were roasting your own beans, I would think that was because you enjoyed the taste of coffee. You enjoyed it so much that you went out of your way to track down non-roasted beans and roast them yourself. This is not an act of cheapness, this is a labor of love. And you decided, "Nah, I just want caffeine. This bean juice is for suckers"?
As a coffee lover myself, how/why did you make that jump?
I really do like the taste, and I still do get an occasional cup about 1-3 times a month from a cafe, but it wasn't great for my body otherwise. I like the taste of cigars and booze, too, and they have obvious cons that preclude regular consumption. Coffee has cons for me too, even if I enjoyed it, so I just cut out my functional consumption for the sake of being alert and replaced it with a pure source that lacked these side effects.
My reasons are right there in the original post: "bathroom trips... bad breath... stain your teeth". Those things become more obnoxious as I aged.
Throw away java ;-)
Unless you go to <insert-coffee-shop> not only for the coffee (social/working space/etc.).
> Caffeine pills work out to $0.05/cup-equivalent
Doesn't replicate the taste or all of the potential health benefits of coffee[0]
[0] https://www.health.harvard.edu/staying-healthy/what-is-it-ab...
Edit: For purely budget reasons, the parent comment's points are valid.
I know people who can have coffee and fall asleep immediately afterwards, and have little to none urinary symptoms at all; and other people who’ll not sleep and / or need to pee frequently.
/rant. Bodies are weird.
Perhaps your symptoms are psychosomatic?
I too was a student and I too tried to min/max. I found that caffeine via coffee hit me harder and wore off quicker. A pill was this slow drip effect that left me absolutely screwed for bedtime if I had it any time past 1pm.
Anecdotal but my conclusion is: they're not the same.
Maybe the coatings in your particular pill were different. I found gelatin capsules kicked in slower than pressed tablets that began to dissolve when they hit my saliva, but still lasted about the same. My tolerance to caffeine has always been high, though.
Caffeine pills work out to $0.05/cup-equivalent, aren't going to make you take bathroom trips, aren't going to give you bad breath, and aren't going to stain your teeth. I usually keep a few in my pocket in case I get randomly drowsy in a meeting or if I'm driving far. I haven't looked back, and I used to pull my own espresso and roast my beans.