Factor #1 is the unknowns, and you're right, you can't know them all. However, you'll usually know some major questions no one can answer for you at that time.
Factor #2 is the perceived difficulty and availability of tools and resources at hand.
Result = roughly double your estimate