A good home remedy for getting rid of fleas in your carpet is to sprinkle salt in the carpet.
Let the salt sit in the carpet for 1 or 2 days and then vacuum the salt and the dead fleas out of the carpet.
The salt will dehydrate and kill the fleas in the carpet.
You should also steam clean the carpets and wash any bedding or blankets or anything else that has fleas on them in hot water.
The hot water will kill off the fleas.
You can also buy flea powder from the stores that will kill the fleas when you sprinkle it all over your carpet.
And then you leave it sit for a few days as well and then vacuum and steam clean the carpet.