IPhone 5 shutting down at specific battery %?

I have a 5-6 month old iPhone 5 that shuts down whenever it reaches 40-47%. Is there any way to fix this?

Also, I have a warranty but I can't return it since I bought it when I was on vacation overseas…

You have to take it to the store (re-tech, maybe) so they can replace the battery in it.

I had the exact same issue with my iPhone 5. I went to the apple store and they replaced it for free. You shouldn't have any problem with your warranty. I would just go to an apple store and let them replace it for you.

Take it to Apple store and they should replace it for free.