본 발명의 일 실시예에 따른 자기 소자는, 제1 방향과 제2 방향에 의하여 정의되는 배치 평면에서 상기 제1 방향으로 연장되고 스핀홀 효과를 제공하는 도전층; 상기 도전층 상에 배치된 자유층; 상기 자유층 상의 일부에 배치된 고정층; 상기 자유층과 상기 고정층 사이에 배치된 터널 장벽층; 상기 고정층 상에 배치된 제1 전극; 상기 고정층과 중첩되지 않도록 상기 자유층 상에 배치된 제1 전하 저장층; 및 상기 제1 전하 저장층 상에 배치된 제1 게이트 전극을 포함한다. 상기 제1 전극과 상기 제1 게이트 전극은 상기 제2 방향으로 배열된다.