Federal judges are appointed for life. The term for a judge in a state court will vary from state to state and court to court. For example, in my state the circuit court judges are appointed for 10 year terms, district court & family court judges get 6 year terms. We also have per diem judges (basically, substitute judges who get called in for a day or two now and then) in the district & family court who get appointed for two terms.