Can I run a 50 amp subpanel from a 100 amp main and if so what size wire
Sure. #6 copper if using Romex or NM-B cable