A magnetic element includes a channel layer, a first magnetic electrode
which is in contact with the channel layer, a second magnetic electrode
which is in contact with the channel layer and is insulated from the
first magnetic electrode, a first intermediate layer which is provided
adjacent to the first magnetic electrode and has a first insulating
layer, a first magnetic layer which is provided in contact with a surface
of the first intermediate layer on an opposite side to a surface
contacting the first magnetic electrode to transfer magnetization to the
first magnetic electrode, a first electrode which is connected to the
first magnetic electrode, and a second electrode which is connected to
the second magnetic electrode, at least one of the first electrode and
the second electrode outputting a first signal which changes depending on
a magnetic arrangement of the first magnetic electrode and the second
magnetic electrode.