How can you calculate a railgun's exit velocity?
This page should help you, it's pretty much the exact calculation you're looking for.

https://www.wired.com/2014/08/the-physics-of-the-railgun/

Note that the projectile itself MUST be conductive, as this is the way that railguns work.