An electronic device includes a first circuit board, a second circuit board, a first housing member, and a second housing member. The first housing member includes a first positioning part having a first board positioning portion that positions the first housing member and the first circuit board, and a first housing positioning portion that positions the first housing member and the second housing member. The second housing member includes a second positioning part having a second board positioning portion that positions the second housing member and the second circuit board, and a second housing positioning portion that engages with the first housing positioning portion to position the first housing member and the second housing member. The first board positioning portion, the first housing positioning portion, the second board positioning portion, and the second housing positioning portion are arranged on a same straight line.