At 82% it is likely reaching the end of its service life, at least for "normal" use.
Go to this web site for information about how to request battery service for your iPhone: iPhone Battery Repair & Replacement - Apple Support
For cost and availability, enter your model information in the "Get an estimate" box at the bottom. (I will let you do this since the answer will depend upon the country where you are located.)
See this excerpt from the "Your battery's maximum capacity" section of the support article: iPhone Battery and Performance - Apple Support
"A normal battery is designed to retain up to 80% of its original capacity at 500 complete charge cycles when operating under normal conditions. The one-year warranty includes service coverage for a defective battery. If it is out of warranty, Apple offers battery service for a charge." In other words, if it is below 80% maximum capacity, it is below normal performance. You can still use it but you may wish to consider having it changed.