Ad hominem (Latin for "to the man" or "to the person"), short for argumentum ad hominem, is now usually understood as a logical fallacy in which an argument is rebutted by attacking the character, motive, or other attribute of the person making the argument, or persons associated with the argument, rather than attacking the substance of the argument itself.
However, its original meaning was an argument "calculated to appeal to the person addressed more than to impartial reason"
Fallacious ad hominem reasoning is normally categorized as an informal fallacy, more precisely as a genetic fallacy, a subcategory of fallacies of irrelevance.
However, in some cases, ad hominem attacks can be non-fallacious; i.e., if the attack on the character of the person is directly tackling the argument itself. For example, if the truth of the argument relies on the truthfulness of the person making the argument—rather than known facts—then pointing out that the person has previously lied is not a fallacious argument.
Ad hominem tu quoque (literally: "You also") refers to a claim that the source making the argument has spoken or acted in a way inconsistent with the argument. In particular, if Source A criticizes the actions of Source B, a tu quoque response is that Source A has acted in the same way. This argument is false because it does not disprove the premise; if the premise is true then Source A may be a hypocrite, but this does not make the statement less credible from a logical perspective. Indeed, Source A may be in a position to provide personal testimony to support the argument.
For example, a father may tell his son not to start smoking as he will regret it when he is older, and the son may point out that his father is or was a smoker. This does not alter the fact that his son may regret smoking when he is older.
Circumstantial ad hominem points out that someone is in circumstances such that they are disposed to take a particular position. It constitutes an attack on the bias of a source. This is fallacious because a disposition to make a certain argument does not make the argument false; this overlaps with the genetic fallacy (an argument that a claim is incorrect due to its source).
The circumstantial fallacy applies only where the source taking a position is only making a logical argument from premises that are generally accepted. Where the source seeks to convince an audience of the truth of a premise by a claim of authority or by personal observation, observation of their circumstances may reduce the evidentiary weight of the claims, sometimes to zero.