An electronic device, comprising: a housing, comprising: a first surface facing a first direction; a second surface facing a second direction opposite to the first direction; and a side member configured to enclose at least some of a space between the first surface and the second surface; a first conductive coil positioned inside the housing and configured to form a first magnetic field in a direction substantially perpendicular to the first direction or the second direction; a second conductive coil spaced apart from the first conductive coil within the housing and configured to form a second magnetic field in a direction substantially parallel to the first direction or the second direction; a communication circuit positioned inside the housing and electrically connected to the first and second conductive coils; a processor positioned inside the housing and electrically connected to the communication circuit; and a first shielding member, comprising: a first portion positioned at a lower portion of the first and second conductive coils and overlapped with the first conductive coil; and a second portion connected to the first portion and overlapped with a portion of the second conductive coil; and a second shielding member comprising a third portion positioned at an upper portion of the second conductive coil and overlapped with the second portion of the first shielding member, wherein the first and second conductive coils comprise coils wound in a spiral shape about each of different shafts in parallel to the first direction or the second direction. a housing, comprising: a first surface facing a first direction; a second surface facing a second direction opposite to the first direction; and a side member configured to enclose at least some of a space between the first surface and the second surface; a first surface facing a first direction; a second surface facing a second direction opposite to the first direction; and a side member configured to enclose at least some of a space between the first surface and the second surface; a first conductive coil positioned inside the housing and configured to form a first magnetic field in a direction substantially perpendicular to the first direction or the second direction; a second conductive coil spaced apart from the first conductive coil within the housing and configured to form a second magnetic field in a direction substantially parallel to the first direction or the second direction; a communication circuit positioned inside the housing and electrically connected to the first and second conductive coils; a processor positioned inside the housing and electrically connected to the communication circuit; and a first shielding member, comprising: a first portion positioned at a lower portion of the first and second conductive coils and overlapped with the first conductive coil; and a second portion connected to the first portion and overlapped with a portion of the second conductive coil; and a first portion positioned at a lower portion of the first and second conductive coils and overlapped with the first conductive coil; and a second portion connected to the first portion and overlapped with a portion of the second conductive coil; and a second shielding member comprising a third portion positioned at an upper portion of the second conductive coil and overlapped with the second portion of the first shielding member, wherein the first and second conductive coils comprise coils wound in a spiral shape about each of different shafts in parallel to the first direction or the second direction.