A mechanical calculator, or calculating machine, was a mechanical device used to perform automatically the basic operations of arithmetic. Most mechanical calculators were comparable in size to small desktop computers and have been rendered obsolete by the advent of the electronic calculator.
Surviving notes from Wilhelm Schickard in 1623 reveal that he designed and had built the earliest of the modern attempts at mechanizing calculation. His machine was composed of two sets of technologies: first an abacus made of Napier's bones, to simplify multiplications and divisions first described six years earlier in 1617, and for the mechanical part, it had a dialed pedometer to perform additions and subtractions. A study of the surviving notes shows a machine that would have jammed after a few entries on the same dial, and that it could be damaged if a carry had to be propagated over a few digits (like adding 1 to 999). Schickard abandoned his project in 1624 and never mentioned it again until his death eleven years later in 1635.
Two decades after Schickard's supposedly failed attempt, in 1642, Blaise Pascal decisively solved these particular problems with his invention of the mechanical calculator. Co-opted into his father's labour as tax collector in Rouen, Pascal designed the calculator to help in the large amount of tedious arithmetic required.; it was called Pascal's Calculator or Pascaline.
Thomas' arithmometer, the first commercially successful machine, was manufactured two hundred years later in 1851; it was the first mechanical calculator strong enough and reliable enough to be used daily in an office environment. For forty years the arithmometer was the only type of mechanical calculator available for sale.
The comptometer, introduced in 1887, was the first machine to use a keyboard which consisted of columns of nine keys (from 1 to 9) for each digit. The Dalton adding machine, manufactured from 1902, was the first to have a 10 key keyboard.Electric motors were used on some mechanical calculators from 1901. In 1961, a comptometer type machine, the Anita mk7 from Sumlock comptometer Ltd., became the first desktop mechanical calculator to receive an all electronic calculator engine, creating the link in between these two industries and marking the beginning of its decline. The production of mechanical calculators came to a stop in the middle of the 1970s closing an industry that had lasted for 120 years.
Charles Babbage designed two new kinds of mechanical calculators, which were so big that they required the power of a steam engine to operate, and that were too sophisticated to be built in his lifetime. The first one was an automatic mechanical calculator, his difference engine, which could automatically compute and print mathematical tables. In 1855, Georg Scheutz became the first of a handful of designers to succeed at building a smaller and simpler model of his difference engine. The second one was a programmable mechanical calculator, his analytical engine, which Babbage started to design in 1834; "in less than two years he had sketched out many of the salient features of the modern computer. A crucial step was the adoption of a punched card system derived from the Jacquard loom" making it infinitely programmable. In 1937, Howard Aiken convinced IBM to design and build the ASCC/Mark I, the first machine of its kind, based on the architecture of the analytical engine; when the machine was finished some hailed it as "Babbage's dream come true".
The desire to economize time and mental effort in arithmetical computations, and to eliminate human liability to error, is probably as old as the science of arithmetic itself. This desire has led to the design and construction of a variety of aids to calculation, beginning with groups of small objects, such as pebbles, first used loosely, later as counters on ruled boards, and later still as beads mounted on wires fixed in a frame, as in the abacus. This instrument was probably invented by the Semitic races and later adopted in India, whence it spread westward throughout Europe and eastward to China and Japan.
After the development of the abacus, no further advances were made until John Napier devised his numbering rods, or Napier's Bones, in 1617. Various forms of the Bones appeared, some approaching the beginning of mechanical computation, but it was not until 1642 that Blaise Pascal gave us the first mechanical calculating machine in the sense that the term is used today.-- Howard Aiken, Proposed automatic calculating machine, presented to IBM in 1937
A short list of other precursors to the mechanical calculator must include a group of mechanical analog computers which, once set, are only modified by the continuous and repeated action of their actuators (crank handle, weight, wheel, water...). Before common era, there are odometers and the Antikythera mechanism, an out of place, unique, geared astronomical clock, followed more than a millennium later by early mechanical clocks, geared astrolabes and followed in the 15th century by pedometers ; These machines were all made of toothed gears linked by some sort of carry mechanisms. These machines always produce identical results for identical initial settings unlike a mechanical calculator where all the wheels are independent but are also linked together by the rules of arithmetic.
The 17th century marked the beginning of the history of mechanical calculators, as it saw the invention of its first machines, including Pascal's calculator, in 1642.Blaise Pascal had invented a machine which he presented as being able to perform computations that were previously thought to be only humanly possible, but he wasn't successful in creating an industry.
In a sense, Pascal's invention was premature, in that the mechanical arts in his time were not sufficiently advanced to enable his machine to be made at an economic price, with the accuracy and strength needed for reasonably long use. This difficulty was not overcome until well on into the nineteenth century, by which time also a renewed stimulus to invention was given by the need for many kinds of calculation more intricate than those considered by Pascal.-- S. Chapman, Pascal tercentenary celebration, London, (1942)
The 17th century also saw the invention of some very powerful tools to aid arithmetic calculations like Napier's bones, logarithmic tables and the slide rule which, for their ease of use by scientists in multiplying and dividing, ruled over and impeded the use and development of mechanical calculators until the production release of the arithmometer in the mid 19th century.
Blaise Pascal invented a mechanical calculator with a sophisticated carry mechanism in 1642. After three years of effort and 50 prototypes he introduced his calculator to the public. He built twenty of these machines in the following ten years. This machine could add and subtract two numbers directly and multiply and divide by repetition. Since, unlike Schickard's machine, the Pascaline dials could only rotate in one direction zeroing it after each calculation required the operator to dial in all 9s and then (method of ) propagate a carry right through the machine. This suggests that the carry mechanism would have proved itself in practice many times over. This is a testament to the quality of the Pascaline because none of the 17th and 18th century criticisms of the machine mentioned a problem with the carry mechanism and yet it was fully tested on all the machines, by their resets, all the time.
Pascal's invention of the calculating machine, just three hundred years ago, was made while he was a youth of nineteen. He was spurred to it by seeing the burden of arithmetical labor involved in his father's official work as supervisor of taxes at Rouen. He conceived the idea of doing the work mechanically, and developed a design appropriate for this purpose; showing herein the same combination of pure science and mechanical genius that characterized his whole life. But it was one thing to conceive and design the machine, and another to get it made and put into use. Here were needed those practical gifts that he displayed later in his inventions...-- S. Chapman, Pascal tercentenary celebration, London, (1942)
In 1672, Gottfried Leibniz started working on adding direct multiplication to what he understood was the working of Pascal's calculator. However, it is doubtful that he had ever fully seen the mechanism and the method could not have worked because of the lack of reversible rotation in the mechanism. Accordingly, he eventually designed an entirely new machine called the Stepped Reckoner ; it used his Leibniz wheels, was the first two-motion calculator, the first to use cursors (creating a memory of the first operand) and the first to have a movable carriage. Leibniz built two Stepped Reckoners, one in 1694 and one in 1706. Only the machine built in 1694 is known to exist, it was rediscovered at the end of the 19th century having been forgotten in an attic in the University of Göttingen.
In 1893, the German calculating machine inventor Arthur Burkhardt was asked to put Leibniz machine in operating condition if possible. His report was favorable except for the sequence in the carry.
Leibniz had invented his namesake wheel and the principle of a two motion calculator, but after forty years of development he wasn't able to produce a machine that was fully operational; this makes Pascal's calculator the only working mechanical calculator in the 17th century. Leibniz was also the first person to describe a pinwheel calculator. He once said "It is unworthy of excellent men to lose hours like slaves in the labour of calculation which could safely be relegated to anyone else if machines were used."
Schickard, Pascal and Leibniz were inevitably inspired by the role of clockwork which was highly celebrated in the seventeenth century. However, simple minded application of interlinked gears was insufficient for any of their purposes. Schickard introduced the use of a single toothed "mutilated gear" to enable the carry to take place. Pascal improved on that with his famous weighted sautoir. Leibniz went even further in relation to the ability to utilise a moveable carriage to perform multiplication more efficiently, albeit at the expense of a fully working carry mechanism.
...I devised a third which works by springs and which has a very simple design. This is the one, as I have already stated, that I used many times, hidden in the plain sight of an infinity of persons and which is still in operating order. Nevertheless, while always improving on it, I found reasons to change its design...-- Pascal, Advertisement Necessary to those who have curiosity to see the Arithmetic Machine, and to operate it, (1645)
When, several years ago, I saw for the first time an instrument which, when carried, automatically records the numbers of steps by a pedestrian, it occurred to me at once that the entire arithmetic could be subjected to a similar kind of machinery so that not only counting but also addition and subtraction, multiplication and division could be accomplished by a suitably arranged machine easily, promptly, and with sure results-- Leibniz, on his calculating machine, (1685)
The principle of the clock (input wheels and display wheels added to a clock like mechanism) for a direct entry calculating machine couldn't be implemented to create a fully effective calculating machine without additional innovation with the technological capabilities of the 17th century. because their gears would jam when a carry had to be moved several places along the accumulator. The only 17th century calculating clocks that have survived to this day do not have a machine wide carry mechanism and therefore cannot be called fully effective mechanical calculators. A much more successful calculating clock was built by the Italian Giovanni Poleni in the 18th century and was a two-motion calculating clock (the numbers are inscribed first and then they are processed).
The 18th century saw the first mechanical calculator that could perform a multiplication automatically ; designed and built by Giovanni Poleni in 1709 and made of wood, it was the first successful calculating clock. For all the machines built in this century, division still required the operator to decide when to stop a repeated subtraction at each index, and therefore these machines were only providing a help in dividing, like an abacus. Both pinwheel calculators and Leibniz wheel calculators were built with a few unsuccessful attempts at their commercialization.
For 40 years, the arithmometer was the only mechanical calculator available for sale and was sold all over the world. By then, in 1890, about 2,500 arithmometers had been sold plus a few hundreds more from two licensed arithmometer clone makers (Burkhardt, Germany, 1878 and Layton, UK, 1883). Felt and Tarrant, the only other competitor in true commercial production, had sold 100 comptometers in three years.
The 19th century also saw the designs of Charles Babbage calculating machines, first with his difference engine, started in 1822, which was the first automatic calculator since it continuously used the results of the previous operation for the next one, and second with his analytical engine, which was the first programmable calculator, using Jacquard's cards to read program and data, that he started in 1834, and which gave the blueprint of the mainframe computers built in the middle of the 20th century.
The cash register, invented by James Ritty in 1879, addressed the old problems of disorganization and dishonesty in business transactions. It was a pure adding machine coupled with a printer, a bell and a two sided display that showed the paying party and the store owner, if he wanted to, the amount of money exchanged for the current transaction.
The cash register was easy to use and, unlike genuine mechanical calculators, was needed and quickly adopted by a great number of businesses. "Eighty four companies sold cash registers between 1888 and 1895, only three survived for any length of time".
By 1900, NCR had built 200,000 cash registers and there were more companies manufacturing them, compared to the "Thomas/Payen" arithmometer company that had just sold around 3,300 and Burroughs had only sold 1,400 machines.
Two different classes of mechanisms had become established by this time, reciprocating and rotary. The former type of mechanism was operated typically by a limited-travel hand crank; some internal detailed operations took place on the pull, and others on the release part of a complete cycle. The illustrated 1914 machine is this type; the crank is vertical, on its right side. Later on, some of these mechanisms were operated by electric motors and reduction gearing that operated a crank and connecting rod to convert rotary motion to reciprocating.
The latter, type, rotary, had at least one main shaft that made one [or more] continuous revolution[s], one addition or subtraction per turn. Numerous designs, notably European calculators, had handcranks, and locks to ensure that the cranks were returned to exact positions once a turn was complete.
The first half of the 20th century saw the gradual development of the mechanical calculator mechanism.
The Dalton adding-listing machine introduced in 1902 was the first of its type to use only ten keys, and became the first of many different models of "10-key add-listers" manufactured by many companies.
In 1948 the miniature Curta calculator, which was held in one hand for operation, was introduced after being developed by Curt Herzstark in 1938. This was an extreme development of the stepped-gear calculating mechanism. It subtracted by adding complements; between the teeth for addition were teeth for subtraction.
From the early 1900s through the 1960s, mechanical calculators dominated the desktop computing market (see History of computing hardware). Major suppliers in the USA included Friden, Monroe, and SCM/Marchant. (Some comments about European calculators follow below.) These devices were motor-driven, and had movable carriages where results of calculations were displayed by dials. Nearly all keyboards were full -- each digit that could be entered had its own column of nine keys, 1..9, plus a column-clear key, permitting entry of several digits at once. (See the illustration below of a Marchant Figurematic.)One could call this parallel entry, by way of contrast with ten-key serial entry that was commonplace in mechanical adding machines, and is now universal in electronic calculators. (Nearly all Friden calculators, as well as some rotary (German) Diehls had a ten-key auxiliary keyboard for entering the multiplier when doing multiplication.) Full keyboards generally had ten columns, although some lower-cost machines had eight. Most machines made by the three companies mentioned did not print their results, although other companies, such as Olivetti, did make printing calculators.
In these machines, addition and subtraction were performed in a single operation, as on a conventional adding machine, but multiplication and division were accomplished by repeated mechanical additions and subtractions. Friden made a calculator that also provided square roots, basically by doing division, but with added mechanism that automatically incremented the number in the keyboard in a systematic fashion. The last of the mechanical calculators were likely to have short-cut multiplication, and some ten-key, serial-entry types had decimal-point keys. However, decimal-point keys required significant internal added complexity, and were offered only in the last designs to be made. Handheld mechanical calculators such as the 1948 Curta continued to be used until they were displaced by electronic calculators in the 1970s.
Typical European four-operation machines use the Odhner mechanism, or variations of it. This kind of machine included the Original Odhner, Brunsviga and several following imitators, starting from Triumphator, Thales, Walther, Facit up to Toshiba. Although most of these were operated by handcranks, there were motor-driven versions. Hamann calculators externally resembled pinwheel machines, but the setting lever positioned a cam that disengaged a drive pawl when the dial had moved far enough.
Although Dalton introduced in 1902 first ten-key printing adding (two operations, the other being subtraction) machine, these feature were not present in computing (four operations) machines for many decades. Facit-T (1932) was the first 10-key computing machine sold in large numbers. Olivetti Divisumma-14 (1948) was the first computing machine with both printer and a 10-key keyboard.
Full-keyboard machines, including motor-driven ones, were also built until the 1960s. Among the major manufacturers were Mercedes-Euklid, Archimedes, and MADAS in Europe; in the USA, Friden, Marchant, and Monroe were the principal makers of rotary calculators with carriages. Reciprocating calculators (most of which were adding machines, many with integral printers) were made by Remington Rand and Burroughs, among others. All of these were key-set. Felt & Tarrant made Comptometers, as well as Victor, which were key-driven.
The basic mechanism of the Friden and Monroe, described above, was a modified Leibniz wheel (better known, perhaps informally, in the USA as a "stepped drum" or "stepped reckoner"). The Friden had an elementary reversing drive between the body of the machine and the accumulator dials, so its main shaft always rotated in the same direction. The Swiss MADAS was similar. The Monroe, however, reversed direction of its main shaft to subtract.
The earliest Marchants were pinwheel machines, but most of them were remarkably-sophisticated rotary types. They ran at 1,300 addition cycles per minute if the [+] bar is held down. Others were limited to 600 cycles per minute, because their accumulator dials started and stopped for every cycle; Marchant dials moved at a steady and proportional speed for continuing cycles. Most Marchants had a row of nine keys on the extreme right, as shown in the photo of the Figurematic. These simply made the machine add for the number of cycles corresponding to the number on the key, and then shifted the carriage one place. Even nine add cycles took only a short time.
In a Marchant, near the beginning of a cycle, the accumulator dials moved downward "into the dip", away from the openings in the cover. They engaged drive gears in the body of the machine, which rotated them at speeds proportional to the digit being fed to them, with added movement (reduced 10:1) from carries created by dials to their right. At the completion of the cycle, the dials would be misaligned like the pointers in a traditional watt-hour meter. However, as they came up out of the dip, a constant-lead disc cam realigned them by way of a (limited-travel) spur-gear differential. As well, carries for lower orders were added in by another, planetary differential. (The machine shown has 39 differentials in its (20-digit) accumulator!).
In any mechanical calculator, in effect, a gear, sector, or some similar device moves the accumulator by the number of gear teeth that corresponds to the digit being added or subtracted - three teeth changes the position by a count of three. The great majority of basic calculator mechanisms move the accumulator by starting, then moving at a constant speed, and stopping. In particular, stopping is critical, because to obtain fast operation, the accumulator needs to move quickly. Variants of Geneva drives typically block overshoot (which, of course, would create wrong results).
However, two different basic mechanisms, the Mercedes-Euklid and the Marchant, move the dials at speeds corresponding to the digit being added or subtracted; a  moves the accumulator the slowest, and a , the fastest. In the Mercedes-Euklid, a long slotted lever, pivoted at one end, moves nine racks ("straight gears") endwise by distances proportional to their distance from the lever's pivot. Each rack has a drive pin that is moved by the slot. The rack for  is closest to the pivot, of course. For each keyboard digit, a sliding selector gear, much like that in the Leibniz wheel, engages the rack that corresponds to the digit entered. Of course, the accumulator changes either on the forward or reverse stroke, but not both. This mechanism is notably simple and relatively easy to manufacture.
The Marchant, however, has, for every one of its ten columns of keys, a nine-ratio "preselector transmission" with its output spur gear at the top of the machine's body; that gear engages the accumulator gearing. When one tries to work out the numbers of teeth in such a transmission, a straightforward approach leads one to consider a mechanism like that in mechanical gasoline pump registers, used to indicate the total price. However, this mechanism is seriously bulky, and utterly impractical for a calculator; 90-tooth gears are likely to be found in the gas pump. Practical gears in the computing parts of a calculator cannot have 90 teeth. They would be either too big, or too delicate.
Given that nine ratios per column implies significant complexity, a Marchant contains a few hundred individual gears in all, many in its accumulator. Basically, the accumulator dial has to rotate 36 degrees (1/10 of a turn) for a , and 324 degrees (9/10 of a turn) for a , not allowing for incoming carries. At some point in the gearing, one tooth needs to pass for a , and nine teeth for a . There is no way to develop the needed movement from a driveshaft that rotates one revolution per cycle with few gears having practical (relatively small) numbers of teeth.
The Marchant, therefore, has three driveshafts to feed the little transmissions. For one cycle, they rotate 1/2, 1/4, and 1/12 of a revolution. . The 1/2-turn shaft carries (for each column) gears with 12, 14, 16, and 18 teeth, corresponding to digits 6, 7, 8, and 9. The 1/4-turn shaft carries (also, each column) gears with 12, 16, and 20 teeth, for 3, 4, and 5. Digits  and  are handled by 12 and 24-tooth gears on the 1/12-revolution shaft. Practical design places the 12th-rev. shaft more distant, so the 1/4-turn shaft carries freely-rotating 24 and 12-tooth idler gears. For subtraction, the driveshafts reversed direction.
In the early part of the cycle, one of five pendants moves off-center to engage the appropriate drive gear for the selected digit. If possible, see John Wolff's website  for a superb collection of photos with some accompanying explanations. He has similar sets of photos for several other notable calculators.
Some machines had as many as 20 columns in their full keyboards. The monster in this field was the Duodecillion made by Burroughs for exhibit purposes.
For sterling currency, £/s/d (and even farthings), there were variations of the basic mechanisms, in particular with different numbers of gear teeth and accumulator dial positions. To accommodate shillings and pence, extra columns were added for the tens digit[s], 10 and 20 for shillings, and 10 for pence. Of course, these functioned as radix-20 and radix-12 mechanisms.
A variant of the Marchant, called the Binary-Octal Marchant, was a radix-8 (octal) machine. It was sold to check very early vacuum-tube (valve) binary computers for accuracy. (Back then, the mechanical calculator was much more reliable than a tube/valve computer.)
As well, there was a twin Marchant, comprising two pinwheel Marchants with a common drive crank and reversing gearbox. The article at the link describes them and shows a twin Brunsviga (side-by-side machines). Twin machines were relatively rare, and apparently were used for surveying calculations (The CORDIC algorithm was invented later, but these machine might be able to execute it.) At least one triple machine (Brunsviga(?)) was made. It is likely that a given accumulator could be engaged with either half of the twin.
The Facit calculator, and one similar to it, are basically pinwheel machines, but the array of pinwheels moves sidewise, instead of the carriage. The pinwheels are biquinary; digits 1 through 4 cause the corresponding number of sliding pins ot extend from the surface; digits 5 through 9 also extend a five-tooth sector as well as the same pins for 6 through 9.
The keys operate cams that operate a swinging lever to first unlock the pin-positioning cam that is part of the pinwheel mechanism; further movement of the lever (by an amount determined by the key's cam) rotates the pin-positioning cam to extend the necessary number of pins.
Stylus-operated adders with circular slots for the stylus, and side-by -side wheels, as made by Sterling Plastics (USA), had an ingenious anti-overshoot mechanism to ensure accurate carries.
Mechanical calculators continued to be sold, though in rapidly decreasing numbers, into the early 1970s, with many of the manufacturers closing down or being taken over. Comptometer type calculators were often retained for much longer to be used for adding and listing duties, especially in accounting, since a trained and skilled operator could enter all the digits of a number in one movement of the hands on a Comptometer quicker than was possible serially with a 10-key electronic calculator. In fact, it was quicker to enter larger digits in two strokes using only the lower-numbered keys; for instance, a 9 would be entered as 4 followed by 5. Some key-driven calculators had keys for every column, but only 1 through 5; they were correspondingly compact. The spread of the computer rather than the simple electronic calculator put an end to the Comptometer. Also, by the end of the 1970s, the slide rule had become obsolete.