He's a Union soldier wearing a Hardee (dress hat) and nondescript fatigue blouse (sack coat), belt with US oval buckle, and cartridge box sling. Almost certainly late war western (IL, OH, MI, WI) regiment. I can't identify his rifle but it could be a photographers prop anyway.
Two million Federal soldiers served and almost every one got their likeness taken, so that narrows it down.