The accident happened at the Wal-Mart on Newton Street in Jasper.
The man was in the check out area when he reached into his pocket to grab something, but instead, accidentally fired a single shot from his handgun.
The bullet went through his pant leg - hitting the concrete floor, then a wall.
The man suffered minor burns to his leg and refused treatment.
No one else was injured.