Skip to main content
PartAndStock
Blog

What Is the PC817? Optocoupler: Pinout, Isolation and Uses

October 17, 2026 5 min read
Quick answer

The PC817 is one of the most common optocouplers (opto-isolators), with an LED and a phototransistor inside. It isolates two circuits electrically (~5000 V) while transferring the signal with light. Pinout DIP-4: 1 Anode, 2 Cathode, 3 Emitter, 4 Collector. It is used in SMPS feedback (with the TL431), relay/triac triggering and breaking ground loops; a current-limiting resistor on the input LED is a must.

The PC817 is one of the most common optocouplers (opto-isolators). It contains an LED and a phototransistor; it isolates two circuits electrically while transferring the signal with light. For the concept, see what is an optocoupler.

What is the PC817 used for?

Isolating a microcontroller from a high-voltage/noisy side: SMPS feedback (with the TL431), relay/triac triggering, level shifting and breaking ground loops. The input LED is driven by current; the output transistor passes the isolated signal.

PC817 pinout (DIP-4)

PinFunction
1Anode (LED +)
2Cathode (LED −)
3Emitter (output transistor)
4Collector (output transistor)

The input (1–2) and output (3–4) sides are electrically isolated from each other (~5000 V).

Highlights

ParameterValue
TypePhototransistor-output optocoupler
Isolation~5000 Vrms
CTR (current transfer ratio)~50% – 600% (by grade)
Channels1 (single)

Watch out

A current-limiting resistor must be placed on the input LED (otherwise the LED burns out). CTR varies with grade and age; leave margin in the design. The phototransistor is not ideal for fast switching; if you need high speed use a fast optocoupler (6N137).

Equivalents and alternatives

  • EL817 / LTV817: drop-in equivalents.
  • PC827: the dual-channel version.
  • 6N137: a high-speed optocoupler.
  • 4N35: a classic alternative.

Find it in our catalog

Use the PC817 search.

Frequently Asked Questions

What is the PC817?+
The PC817 is a common optocoupler (opto-isolator) with an LED and a phototransistor inside. It isolates two circuits electrically (~5000 V) while transferring the signal with light.
What is the PC817 pinout?+
DIP-4: 1 Anode (LED +), 2 Cathode (LED −), 3 Emitter, 4 Collector. The input (1–2) and output (3–4) sides are isolated from each other.
Why does the PC817 input need a resistor?+
The input LED is driven by current; without a current-limiting resistor the LED burns out from excess current. The resistor value is chosen for the desired LED current.
What is the PC817 CTR?+
CTR (current transfer ratio) is the ratio of output current to input LED current; on the PC817 it is ~50–600% by grade and can drop with age, so leave margin in the design.
What is an equivalent to the PC817?+
Drop-in EL817/LTV817; the dual-channel PC827; the 6N137 for high speed; the 4N35 as a classic alternative.