An error in reasoning is a fallacy. If I counted twenty people in the room when there were in fact twenty one, I made a factual mistake but not a fallacy. On the other hand, if I believe that there are round squares, I am believing something that is inconsistent. This is a mistake of reasoning, and a fallacy.