For a long term solution find out why the ants are coming in from outdoors and hitting your carpet.
Ants in my bedroom carpet.
There are two appropriate methods for getting rid of the ants in carpets.
Insecticide powder dust and ant baits.
Ants will only go where there are resources.
Is there food left out anywhere.
Ant sprays are not recommended because they can leave stains and are bad if you have kids or pets due to their residual effects.
Make sure there is no accidental stash anywhere.
Clean and vacuum th.
The best option is to use insecticide powder for ants.
The same can t be said of carpenter ants which feed on rotten or damp wood potentially damaging windows doors or even structural framing in the process carpenter ants are about 1 4 to 1.
I have an ant problem in my bedroom and i haven t had an ant problem in here for over a year i ve narrowed down 2 possible entry points my window and a floorboard or two under my bed i have a counter shelf right next to my bed that they climbing onto and i already cleaned it up and they are still crawling on it any ideas i don.
In the end ant infestation under carpet are not impossible to deal with so just relax.