If you search the internet for novel length, you will mostly receive the standard advice that a novel should fall somewhere between 80,000 and 100,000 words.
That is good advice. But I don't like to do things half-heartedly, so here is the bigger picture of length in fiction...
A novel is anything over 50,000 words
A novella is between 20,000 and 50,000 words
A short story has a word count of under 20,000 words
(Short stories, incidentally, are more generally considered to range between 1,000 and 7,500 words. Anything under this is known as a short-short, or as flash fiction. Anything longer is sometimes called a novelette, though because this is a derogatory term (meaning fiction which is light on substance rather than length), a long story is a better term.
However you describe short stories, they are published both individually in magazines and collectively in book form. Novellas might be published individually as a thin book, or they might form part of a story collection.
But let's return to the matter in hand: the length of novels...
I said above that the ideal length of a novel is 80-100,000 words. Anything less than 70,000 or over 110,000 might make publishers think twice before accepting it.
Why? Because publishing is a business:
In short, 80 to 100,000 words seems to be the "sweet spot" of novel length, particularly for a first-time novelist (who always represents more of a gamble for publishers).
If you do stray outside these limits, it is much better to write a long novel than a short one.
Short novels are difficult to expand without a complete rewrite. Long ones can be pruned by a good editor, or perhaps even released as two books.
If you absolutely insist on producing the next Animal Farm (30,000 words) or War and Peace (500,000 words), wait until later in your career when your name carries more commercial clout.
Oh, one last thing about novel length...
Although the length of fiction is genre-dependent to an extent (fantasy novels, for example, tend to be on the thicker side), sticking to the sweet spot, at least for your first novel, is still the best advice. It makes it so much easier to Publish Your Novel.
Next Step: Having worked out the ideal novel length (about 80,000 words, in case you weren't paying attention), we are now in a position to be able to work out how long it will take you to Write Your Book.