Extension cords and sump pumps don't mix well.
Don’t use an extension cord with a dehumidifier or sump pump unless you have absolutely no other option. And if you must, use a short, heavy-duty 12-gauge or thicker cord rated for the full amperage.
The problem is simple: these appliances pull a steady, high current for hours. A standard household extension cord (16-gauge, cheap, 25 feet long) will heat up, voltage drop, and can start a fire. Sump pumps especially — they sit in water and often run unattended. Worst case: the cord melts, shorts, and you get electrocuted or a fire in your basement.
If you truly can’t plug directly into a GFCI outlet, pick the shortest heavy-duty cord you can find. 14-gauge is borderline; 12-gauge is safer. Make sure it’s rated for outdoor use (thicker insulation) and never coil it up — coiled cords overheat faster. Also, verify the dehumidifier or pump’s manual explicitly says “extension cord use is allowed.” Many say “no.” They mean it.
The honest answer: I’ve done it temporarily with a short 12-gauge cord and a dehumidifier in a tight spot. But I wouldn’t sleep soundly with it long-term. A sump pump on extension cord during a storm? That’s a gamble I wouldn’t take.
Future You deserves a properly installed outlet.