Hold option key & click on wi fi icon that is on top menu bar & click on open wireless diagnostics .
Take cursor on top left hand side of the the top menu bar & select wireless diagnostics , select open external tool & click on network diagnostics .
Network status will be shown in the window ( a ) wi - fi ( b ) wi fi settings ( c ) network settings ( d ) ISP ( e ) internet ( f ) server , all of them must have green dots in front of them .
Select the box wifi & click on continue .
Then again , select your wireless network name shown ( having a small lock in front of it ) in the window & click on continue .
A pop - up window appears network diagnostics wants to access key ..........your wireless name will be written in your keychain , do you want to allow access to this internet ? so click on ALLOW .
In the last a report will be written inside the window - Your internet connection appears to be working correctly - click on quit .
Again take cursor on the top menu bar & select wireless diagnostics & quit wireless diagnostics .
Another method is run wireless diagnostics test : Check for Wi-Fi issues using your Mac - Apple Support
Or you can go to system preferences & open the padlock by entering your admin name & password select your network name & click on minus sign , click on advanced > remove network name , uncheck remember network name > DNS settings & no proxies must be enabled . once again configure your network some mistakes can be there while settings .
I had the same issue once , every settings was perfect still the wi fi was dropping , so called the ISP guy , the service provider modem settings were incorrect , changed the defective modem , also some road construction work was going nearby my place , as internet wires are laid underground they were damaged ( minor cuts in wires will drop the internet connection ) .
I hope so it could help you somewhat & you can ask for further assistance .
Thanks !