The myth: To build credit, you have to leave some of your credit card bill unpaid each month and carry a balance.
The reality: The CFPB says the opposite: "You don't need to carry a balance on credit cards to get a good score. In fact, you don't need outstanding debt at all." It adds that "paying off the balance in full each month helps get you the best scores and keeps your interest costs as low as possible" (CFPB).
What scoring models do look at is your payment history and how much of your available credit you're using, called credit utilization (CFPB).
Why it sticks: Using a card does help build a record: the CFPB notes that an on-time payment history on a credit card "may show up on your credit report" (CFPB). The myth mixes up using a card with owing on it. A card can be used and paid in full, and the payment history still counts.
Carrying a balance mostly adds cost. On a $1,000 balance at 22.99% APR, a month of interest is about $19.16.