Danny Summers, 40, of Dunbar , pleaded guilty to second-degree robbery during a hearing in Kanawha County Circuit Court on Wednesday afternoon.
Summers faces five to 18 years in prison when he is sentenced in August.
The robbery happened April 11 at Fifth Third Bank at 4515 MacCorkle Ave.
Just hours after the robbery, Charleston Police arrested Summers.
Investigators say he walked into the bank, showed his gun to the teller and demanded money. Summers allegedly then ran from the bank with the money.