Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Calculators
  3. ›7-segment and LED matrix current calculator (multiplexing)

Ohm’s law & basics

7-segment and LED matrix current calculator (multiplexing)

Segment resistor, average brightness and pin currents for multiplexed 7-segment displays and LED matrices driven from an Arduino, 74HC595 or transistors.
Short answer
Main formula
R = (Vsupply − Vf − Vtransistor) ÷ I_peak
Example
A 4-digit red display on 5 V with 15 mA per segment and 0.3 V lost in the digit transistor needs (5 − 2 − 0.3) ÷ 0.015 = 180 Ω. Each digit is lit 25% of the time, so the average is 3.75 mA per LED.

Calculate

V
V
Red 1.8 to 2.1 V, green and yellow about 2.1 V, blue and white about 3 V
mA
Most 0.56" displays allow 20 to 30 mA peak per segment; check the datasheet
1 means static drive, every digit lit all the time
8 for a 7-segment digit with the decimal point, 8 for one row of an 8×8 matrix
V
About 0.2 to 0.3 V for each saturated transistor in the path; 0 if pins drive the LEDs directly
Hz
Above about 60 Hz looks steady; 100 Hz or more avoids flicker on camera
Segment resistor180 Ω (E12)
Exact resistor value
180 Ω
Segment current while lit
15 mA
Duty cycle per digit
25%
Average current per LED
3.75 mA
Brightness compared with static drive
25% at the same peak current
Common pin current (one digit fully lit)
120 mA
Supply current, worst case
120 mA
Scan rate (digit switches per second)
400 Hz, 2.5 ms per digit
Resistor power
10.1 mW (¼ W is plenty)

The common pin carries 120 mA, over the 40 mA absolute limit of an Arduino pin. Drive each digit through a transistor (BC547, 2N2222) or use a driver such as the MAX7219 or TM1637.

Multiplexing lights one digit at a time, so each LED is on for only 1/4 of the time and looks about that much dimmer. For more brightness, raise the peak current up to the display’s peak rating, not past it. Driver ICs like the MAX7219 and TM1637 set the current themselves, so you do not need these resistors with them.

Formula

R = (Vsupply − Vf − Vtransistor) ÷ I_peakDuty = 1 ÷ number of digitsI_average = I_peak × dutyI_common = LEDs lit per digit × I_peakScan rate = refresh rate × digits

Worked example

A 4-digit red display on 5 V with 15 mA per segment and 0.3 V lost in the digit transistor needs (5 − 2 − 0.3) ÷ 0.015 = 180 Ω. Each digit is lit 25% of the time, so the average is 3.75 mA per LED. With all 8 segments on, the common pin carries 8 × 15 = 120 mA, far too much for an Arduino pin, so it needs a transistor.

How it works

A 4-digit 7-segment display has only 12 pins because the segments of every digit are wired together. You light one digit at a time, very quickly, and your eye blends the frames into a steady number. This is called multiplexing.

The catch is brightness and current. Each digit is lit for only part of the time, so it looks dimmer than when it is lit continuously, and the common pin of a digit carries the current of every lit segment at once. That is usually more than a microcontroller pin can give, so the common pins go through transistors, or a driver IC such as the MAX7219 or TM1637 does the scanning for you.

Questions

What resistor do I need for a 7-segment display?+

One resistor per segment line, from (supply − LED voltage − transistor drop) ÷ segment current. On 5 V with red segments and 15 mA, about 180 to 220 Ω. Do not use one resistor on the common pin, or the brightness will change with the number of segments lit.

Why does my multiplexed display look dim?+

Each digit is lit only 1/N of the time. Raise the peak current within the display’s peak rating, keep the refresh rate above about 60 Hz, and keep the code that scans the display free of long delays.

Do I need resistors with a MAX7219 or TM1637?+

No. The MAX7219 sets the segment current with a single RSET resistor, and the TM1637 has built-in current control and brightness levels.

Why do multiplexed displays need more peak current?+

Each digit is on only part of the time, so peak current must be higher to keep the same brightness.

What formula does the 7-segment and LED matrix current calculator (multiplexing) use?+

R = (Vsupply − Vf − Vtransistor) ÷ I_peak; Duty = 1 ÷ number of digits; I_average = I_peak × duty; I_common = LEDs lit per digit × I_peak; Scan rate = refresh rate × digits.

Can you show a worked example?+

A 4-digit red display on 5 V with 15 mA per segment and 0.3 V lost in the digit transistor needs (5 − 2 − 0.3) ÷ 0.015 = 180 Ω. Each digit is lit 25% of the time, so the average is 3.75 mA per LED. With all 8 segments on, the common pin carries 8 × 15 = 120 mA, far too much for an Arduino pin, so it needs a transistor.

Which projects use this calculation?+

Geekobot builds that use it include LED matrix bouncing ball, Emoji feelings board for the classroom, LED matrix sound bar graph and Electronic dice on an LED matrix. Each has the full parts list, wiring and code.

Related guides

  • 7-Segment Displays
  • MAX7219 LED Dot Matrix
  • TM1637 4-digit display
  • 74HC595 Shift Register
  • All guides

Projects that use this

  • LED matrix bouncing ballBeginner · 45 minutes
  • Emoji feelings board for the classroomBeginner · 1 hour
  • LED matrix sound bar graphBeginner · 2 hours
  • Electronic dice on an LED matrixBeginner · 1 hour

More ohm’s law & basics

  • Ohm’s law calculatorV = I × R
  • Resistor power rating calculatorP = I²R
  • Series and parallel resistor calculator1/R = Σ 1/Rn
  • Series and parallel capacitor calculatorC = ΣCn
  • Voltage divider calculatorVout = Vin·R2/(R1+R2)
  • LED series resistor calculatorR = (Vs − Vf)/I
All 113 calculators →

Stuck on a design?

Describe your circuit or paste a parts list, and Geeko AI will check it and suggest the parts.

Ask Geeko AI

Results are estimates for design and learning. Check critical designs against the component datasheet. Made by the Geekobot Learning Team. How we write our calculators

one digit at a time · 25% duty eachreal scan: 400 digit switches per secondscan slowed down to show