an alternating current (ac) is an electric current of which magnitude and direction vary, unlike direct current, whose direction remains constant. this means that the direction of current flowing in a circuit is constantly being reversed back and forth. this is done with any type of ac voltage source.