A technical foul is a foul for conduct or procedure, not for contact during live play. High school and college give two free throws for most technicals, and two technicals eject a player at most levels.
The calls most people mean are conduct technicals: disrespecting an official, profanity, taunting, inciting the crowd or unnecessary contact during a dead ball. There are also procedure technicals, like calling a timeout you do not have or an illegal roster change. NCAA men's rules call some of those administrative technicals.
The penalty varies. In high school, it is two free throws and a throw-in at the division line, and it counts toward the team fouls and toward the player's five fouls. NCAA men split them: a Class A is two free throws and counts toward team fouls, while a Class B is one free throw and does not. In NCAA men's and women's games, the coach or captain picks the shooter, and one player shoots both.
Here is an example. A player slams the ball after a call. That is a conduct technical. The other team shoots two, then gets the ball. A close game can turn on that.
The coaching point is to set the standard before the season and enforce it the same way for every player. Teach players to turn and run after a call. The common mistake is a coach drawing a technical to fire up the team. It usually costs points and shows players the opposite of the standard.
More In-Game Coaching questions
Free playbook
Get the free flex offense playbook
Every flex cut, starting set, counter, special and drill, with all 30 diagrams, in one printable PDF.