Solid candles
TSA’s entry for solid candles says yes in a carry-on and yes in a checked bag. It sets no size limit and adds no conditions.
Gel-type candles
TSA’s separate entry for gel-type candles says no in a carry-on and yes in a checked bag. Neither entry describes the two types any further, so if the label on yours says gel, pack it as gel.
Candles as gifts
TSA encourages gift bags, “which they can easily open,” or gift boxes with lids they can remove, so officers can inspect a gift “and avoid the possibility of opening fully wrapped presents.”
Flying home from abroad
TSA’s answer covers screening at US airports. On the way home you go through the other airport’s screening first, and its rules are the ones that count there.

TSA puts this on every entry: “The final decision rests with the TSA officer on whether an item is allowed through the checkpoint.”