Here is a breakdown of when Apple will fix your device for free, and when they will charge you.
If your iPhone is under warranty (or AppleCare+) and your battery health drops below 80% capacity within the coverage period.
Every new iPhone comes with one year of hardware repair coverage through its standard limited warranty.
To get your iPhone repaired or replaced, follow these steps: