Depends on whether or not you're a good puzzle solver. Those who played the original Portal will probably finish the single-player portion of Portal 2 in 5 to 6 hours. Those who haven't or aren't so good at puzzles might take 8+ hours.
There's also co-op mode that adds another 4-8 hours, depending on how coordinated you are with your partner.