The longer the sentence is the more likely you are to need a comma. However, the length of the sentence is not what determines that. (Note that my sentence (the first one) is only four words long.)
This is from the book "Practical English Usage" by Michael Swan. And here we have a lot of short sentences. But sometimes a comma is used, and sometimes not.
If you have a question about the English language and would like to ask one of our many English teachers and language experts, please click the button below to let us know: