Can't connect to my Wi-Fi on my iphone?

I've restord network settings on my iphone and i've even put my phone to factory settings
it find my Wi-Fi but when i put in the password it it says incorrect and i know is 100% right,
my laptop is connecet fine so it must be a problem with my phone i was going to ask apple but because my phones out of warrenty they want me to pay for a answer
doesanyone no what i could do?

I would recommend checking to see if it has any updates. If there's none then I would recommend putting it into DFU mode and then reinstalling the OS on it

Iphones have problems connecting to newer or more advanced Wi-Fi networks that use "advanced" encryption.

the problem is with WPA/WPA2 security, if your setup for WEP or NO encryption it will likely connect perfectly.

google "iphone can't connect to WPA" and you will find countless people having the same problem (and a lot less not having the problem)

its one of the things apple, to my understanding, still hasn't gotten perfect.

an easy fix is to make it WEP encryption, or search apple support site for other "temp fixes" since there's no real patch from apple yet.