0% found this document useful (0 votes)
16 views18 pages

How Do Calculators Work - ScienceABC

Calculators operate using millions of logic gates formed by transistors, which perform calculations by processing binary inputs and outputs. The evolution from mechanical devices to electronic calculators has made them smaller, faster, and more accessible, with modern calculators capable of advanced functions. Despite their convenience, reliance on calculators may lead to decreased mental arithmetic skills.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views18 pages

How Do Calculators Work - ScienceABC

Calculators operate using millions of logic gates formed by transistors, which perform calculations by processing binary inputs and outputs. The evolution from mechanical devices to electronic calculators has made them smaller, faster, and more accessible, with modern calculators capable of advanced functions. Despite their convenience, reliance on calculators may lead to decreased mental arithmetic skills.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

2/10/25, 6:44 PM How Do Calculators Work?

» ScienceABC

 Phys


Che

Biolo


Home » Technology
Engi


How Do Calculators Work? Math

Written By Akash Peshin Last Updated On: 19 Oct 2023 Published On: 10 Jan 2016 Soci
Scie


Table of Contents (click to expand)
Vide

 A calculator is a combination of millions of logic gates arranged in


Abou
particular ways that operate on numbers and produce results with Us
lightening speed. The transistors are paired in particular ways to
form logic gates, which provide specific outputs according to the
placement of these transistors. The most basic ones are AND, OR
and NOT gates.

Around the time when we began to realize the full extent of electronic
circuits, the terms “computer” and “calculator” were used
interchangeably due to their similar functionality.

Eventually, the former evolved into a device with wide-ranging purposes,


from programming to browsing the Internet, whereas the latter was
limited to something only devoted to completing
calculations. However, like seemingly different animals from the same
genus or family, they share a common history and operate on the same
basic principles. A calculator uses several logic gates arranged in
particular ways to perform complex operations on input numbers.

Recommended Video for you:

https://www.scienceabc.com/innovation/how-do-calculators-work.html 1/18
2/10/25, 6:44 PM How Do Calculators Work? » ScienceABC

 Phys


Che

Biolo


Engi


Math

Soci
Scie


How Did Computers Go From The Size Of A Room To The Size Of A Fingernail? Vide

Abou
Us
History Of Calculators: Anita Calculator To
Pocket Calculator

Loop in the right IT t


Enhance service desk perform
tracking key ITSM metrics effo
Download now.

ManageEngine

The first and relatively simple calculations were executed on an abacus.


However, due to its slow and tedious operation, it was replaced by
calculators that used gears and levers. These, as you might have
guessed, were quite large and bulky.

https://www.scienceabc.com/innovation/how-do-calculators-work.html 2/18
2/10/25, 6:44 PM How Do Calculators Work? » ScienceABC

The introduction of vacuum tubes replaced mechanical parts, but the


 Phys


calculators, although quicker, were still quite heavy. The world’s first
electronic calculator, ANITA, used small vacuum tubes, but weighed a Che

hefty thirty-three pounds! Compare that to your pocket calculator or the


Biolo


app on your two hundred-gram iPhone.

Engi


Math

Soci
Scie


Vide

Abou
Us
(Photo Credit : MaltaGC / Wikimedia Commance & ieeecomputersociety)

Finally, the age of digital electronics witnessed the birth of the transistor,
the pinnacle of semiconductor technology, which allowed the extreme
scaling down of size and made calculators cheaper and more
accessible.

The Components

1. Input: The components lie in a shell of robust or durable plastic


with holes in it. These holes are filled by buttons composed of
rubber that push through. The numbers and operational symbols
are drawn on these buttons, and when pressed, they complete a
circuit beneath, sending electrical impulses through a circuit board.

https://www.scienceabc.com/innovation/how-do-calculators-work.html 3/18
2/10/25, 6:44 PM How Do Calculators Work? » ScienceABC

 Phys


Che

Biolo


Engi


Math

Soci
Scie


Vide

2. Processor: The microprocessor is the brain of the calculator, and


Abou
is an integrated chip that conains an entire Central Processing Unit Us

(CPU) on a single silicon microchip.


1. The processor identifies the pressed buttons and operates
on the number’s binary values, strings of ‘1’s and ‘0’s – the only
language it understands.
2. The processor will store the binary inputs temporarily in its
registers and perform the required operation on them. The
resultant binary output is again converted to a decimal and
displayed.

https://www.scienceabc.com/innovation/how-do-calculators-work.html 4/18
2/10/25, 6:44 PM How Do Calculators Work? » ScienceABC

 Phys


Che

Biolo


Engi


Math

Soci
Scie


Vide
3. Output: The output is displayed on a LCD screen that rearranges
light molecules to create a pattern. Earlier models used LED Abou
screens that consumed more power. The display immediately Us

shows the input numbers as they are typed, as well as eventual


result the calculator spits out.
4. Power: Calculators are powered by powerful lithium batteries or
renewable solar cells that rejuvenate the device as it receives
photons during daylight.

How Do Calculators Work?

The Basics
https://www.scienceabc.com/innovation/how-do-calculators-work.html 5/18
2/10/25, 6:44 PM How Do Calculators Work? » ScienceABC

The transistors are paired in particular ways to form logic gates, which Phys


provide specific outputs according to the placement of these transistors.
The most basic ones are AND, OR and NOT gates. Our analogy of Che

transistors as taps will make our understanding of transistors and logic


Biolo


gates much easier. For a more detailed explanation, click here. Water
that is allowed to flow with an open knob is interpreted as ‘1’ and water
Engi


blocked due to a closed knob is interpreted as ‘0’.
Math

Soci
Scie


Vide

Abou
Us

It is informative to know that the processor does not convert a decimal


number into binary bits, but rather, these numbers are drawn for our
convenience only.

The processor recognizes the button or an input via the circuit path and
holds its binary value. For instance, 2 is written as 10 in binary.

https://www.scienceabc.com/innovation/how-do-calculators-work.html 6/18
2/10/25, 6:44 PM How Do Calculators Work? » ScienceABC

However, it converts binary to decimal each time it has to display what


 Phys


you have entered or the results of an operation. Explaining the
conversion of numbers to different systems is time-consuming and Che

irrelevant right now; all you need to understand is that the processor
Biolo


uses circuits that convert numbers and perform operations on a train of
‘1’s and ‘0’s.
Engi


The AND gate employs transistors in a series configuration and
Math
performs logical conjunction, whereas the OR gate consists of two
transistors in parallel configuration and performs logical disjunction. The Soci
NOT gate simply negates the input, i.e., converts a ‘1’ to a ‘0’ and vice Scie


versa.
Vide

Abou
Us

https://www.scienceabc.com/innovation/how-do-calculators-work.html 7/18
2/10/25, 6:44 PM How Do Calculators Work? » ScienceABC

 Phys


Specials on 2024 Ne
Che
Trucks
New Truck Sales Near You. Sav Biolo


Top Brands & Latest Models.
Engi


GoSearches Math

The combination of these gates can be used to form another important Soci
Scie
logic gate: Exclusive-OR gate. This gate gives the impression of adding


its two inputs. The EX-OR operation is simple; it produces a ‘1’ when its
Vide
inputs are different.
Abou
Us

https://www.scienceabc.com/innovation/how-do-calculators-work.html 8/18
2/10/25, 6:44 PM How Do Calculators Work? » ScienceABC

A calculator uses millions of such logic gates arranged in particular


 Phys


ways to perform complex operations on input numbers.
Che

Biolo


Engi


Math

Soci
Scie


Let’s find out how these particularly arranged gates execute complex Vide

operations. However, our explanation is only limited to addition and


Abou
multiplication to give you a general idea. Believe me, it gets much more Us
complicated!

The Adder
The adder is a logical circuit that adds two bits – A and B – but how is it
any different from the EX-OR gate?

Looking at the final sequence of inputs for an EX-OR gate, one can see
that although the sum of ‘1’ and ‘1’ is ‘0’, it also generates a carry bit that
is not included in our table.

https://www.scienceabc.com/innovation/how-do-calculators-work.html 9/18
2/10/25, 6:44 PM How Do Calculators Work? » ScienceABC

 Phys


Che

Biolo


Engi


Math

The circuit generates another bit that is “carried over” and stored as an Soci
Scie
extra bit in the memory. The bits are actually separated into two


columns – sum and carry. Looking at the table, one sees that the sum
Vide
can be generated by an EX-OR gate, while the carry over bits represent
an AND gate. The two outputs can be generated simultaneously using a Abou
circuit known as a half adder. Us

https://www.scienceabc.com/innovation/how-do-calculators-work.html 10/18
2/10/25, 6:44 PM How Do Calculators Work? » ScienceABC

But again, the circuit does not consider any carry over bit forwarded to it Phys


by a previous adder. A three-input adder that considers the carry-overs
from a previous adder is called a full adder. . Che

Two ‘1’s generate a ‘0’ with a ‘1’ carry, and three ‘1’s generate a ‘1’ with Biolo


‘1’ as a carry too. The carry out bit is forwarded to the next adder. The
Engi
full adder can be viewed as a combination of two half adders or a


combination of different logic gates.
Math

Soci
Scie


Vide

Abou
Us

This complex circuit only adds one bit. (Yes, all that hassle for only one!)

Further, ‘n’ such bits can be added by an n-bit adder, which is a


combination of ‘n’ full adders, with their carry overs passed on to the
next adder. The individual sums are grouped together as the total sum,
with a carry over generated by the last adder.

https://www.scienceabc.com/innovation/how-do-calculators-work.html 11/18
2/10/25, 6:44 PM How Do Calculators Work? » ScienceABC

 Phys


Che

Biolo


Engi


Math

Soci
Scie


Vide

Abou
Us

4-bit adders are combined to form 8-bit adders and so on in order to add
larger numbers.

The Multiplier
The process of binary multiplication is similar to decimal multiplication,
although implementing it using gates is difficult.

For instance:

https://www.scienceabc.com/innovation/how-do-calculators-work.html 12/18
2/10/25, 6:44 PM How Do Calculators Work? » ScienceABC

Also, the number of output bits generated are double the size of the
 Phys


seeded input bits. The operation can therefore be implemented by what
is called partial product accumulation. The example shows the Che

multiplication of two 2-bit numbers – A and B – which produces sums


Biolo


that are the products of individual bits.

Engi
The individual products are generated by 4 AND gates. Furthermore,


these sums can be added with the help of half adders to produce the
Math
sums S4-S0, grouped together to form S, the product of A and B.
Soci
Scie


Vide

Abou
Us

Similarly, using the same principle, 4-bit numbers can be multiplied


together using 16 AND gates and 12 adders to generate an 8-bit
number and so on.

The calculator also subtracts and divides numbers using similar logic
gates. It is important to know that we have explained the most basic or
primitive circuits to add and multiply, just to give you just a general idea.
These circuits were long ago replaced by much faster and quicker
circuits. A computer uses the very same logic gates for general purpose
computing, which is brought about by calculating and crunching
numbers at its core. The calculator only calculates; it is not
programmable.

https://www.scienceabc.com/innovation/how-do-calculators-work.html 13/18
2/10/25, 6:44 PM How Do Calculators Work? » ScienceABC

As more and more transistors were stacked on a processor, the range


 Phys


of operations for calculators expanded. Today, calculators are far more
advanced and more scientific calculators with more memory and Che

superior processors, and are used by professionals, such as engineers,


Biolo


who are therefore able to perform logarithmic calculations and calculus.
And now, this device, like so many others, has been integrated with our
Engi


beloved smartphones.
Math

Soci
Scie


Vide

Abou
Us

Although it has relieved us of the torments that mathematics represents


for so many of us, it is believed that our dependence on such devices
has made us cognitively lazy. The amount on the bill might not split into
seven perfectly every time, but do it in your head once in a while just to
keep the juices flowing. You never know when your phone will be dead
and you’ll be forced to do dreaded math in your head – just like in the
good old days!
References (click to expand)

https://www.scienceabc.com/innovation/how-do-calculators-work.html 14/18
2/10/25, 6:44 PM How Do Calculators Work? » ScienceABC

 Phys


Che

Biolo


Akash Peshin
Akash Peshin is an Electronic Engineer from the University of Mumbai, India and a science Engi


writer at ScienceABC. Enamored with science ever since discovering a picture book about
Saturn at the age of 7, he believes that what fundamentally fuels this passion is his curiosity and
Math
appetite for wonder.

Soci
Scie


Tags: Addition, Calculator, Computer, Computing
Vide

Related Posts
Abou
Us

What’s The Can Computers The Human Brain


Difference Between Keep Getting Faster Vs.
Analog And Digital Forever? Supercomputers…
Circuits? Which One Wins?
 November 23, 2015
 January 11, 2019   December 3, 2015 
 Computing
Computing Neuroscience

https://www.scienceabc.com/innovation/how-do-calculators-work.html 15/18
2/10/25, 6:44 PM How Do Calculators Work? » ScienceABC

What Are When And Why Did How Do Currency Phys


Semiconductors? We Start Using Math Counting Machines
And How Do They Symbols? Work? Che
Work?
 September 4, 2019   January 9, 2016 
 August 15, 2015  Biolo


Mathematics Technology
Physics
Engi


Math
Related Videos
Soci
Scie


Vide

Abou
Us

https://www.scienceabc.com/innovation/how-do-calculators-work.html 16/18
2/10/25, 6:44 PM How Do Calculators Work? » ScienceABC

 Phys


Che

Biolo


Engi


How Transistors Human Brain vs Quantum
Work - A Quick and Supercomputer: Computers
Math
Basic Explanation Which One Wins? Explained: How
Quantum Computing
 August 28, 2018  May 19, 2022
Works Soci
Scie


 October 1, 2024

Vide

Abou
Us

What is Calculus in Is Mathematics How Are Prime


Math? Simple INVENTED or Numbers Used In
Explanation with DISCOVERED? Cryptography?
Examples
 March 13, 2023  July 18, 2024
 January 24, 2024

ScienceABC Copyright © 2025. 


About Us Publishing Policy Privacy Policy Cookie Policy Terms of Use Contact Us

https://www.scienceabc.com/innovation/how-do-calculators-work.html 17/18
2/10/25, 6:44 PM How Do Calculators Work? » ScienceABC

DO NOT SELL OR SHARE MY INFORMATION


 Phys


Che

Biolo


Engi


Math

Soci
Scie


Vide

Abou
Us

https://www.scienceabc.com/innovation/how-do-calculators-work.html 18/18

You might also like