iphone 5 battery dying once it hits under 40%

Odd situation with my iPhone. For the past 3 days now every time my phone drops below 40% it shuts off. Has anyone else had this issue or any ideas on what may fix it.
Mine does it all the time as well, I've tried restores, setting up as new I've tried everything & I don't know why it's doing it. I'm on 7.0.4 what versions your phone on?
I saw mine go from 40 to 5 in about an hour last night while only texting. Running 7.0.4 and still running from an iOS 6 upgrade (no clean install).
I am running 7.0.4
I had a very similar issue, took my phone into the Apple store and they did a diagnostic, results showed my battery is failing. They suggested replacement but for $79 I'm sourcing other options. They said the problem will worsen but probably on a gradual basis, no need to panic but I'd plan on a new battery if I were you. Hope that helps!
Odd situation with my iPhone. For the past 3 days now every time my phone drops below 40% it shuts off. Has anyone else had this issue or any ideas on what may fix it.

If it's under warranty take it to apple
Mines been dying more frequently too with iOS 7
If it's under warranty take it to apple

Yeah though of that but sadly it's not under warranty anymore.

On the ups side it has not done it for the last few day but i think it has more to do with iOS 7. Even my iPad is not holding a charge like it used to

Original thread: https://forums.imore.com/threads/iphone-5-battery-dying-once-it-hits-under-40.274087/