MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › Op amp summer and subtractor calculation
HomeModels
Table of contents

On this page

Electrical & Electronic Basics (600 articles)

Quick Reference

  • PLC & Programming
  • Electrical & Electronic Basics (monthly)(每月更新中)
  • Electrical Control & Drawings (monthly)(每月更新中)
  • Drives & Actuators (monthly)(每月更新中)
  • Sensors & Detection (monthly)(每月更新中)
  • Industrial Communication & Networks (monthly)(每月更新中)
  • HMI & Host Systems (monthly)(每月更新中)
  • Industrial Robots & Motion Control (monthly)(每月更新中)
  • Mechatronic System Integration (monthly)(每月更新中)
  • Fault Diagnosis & Standards (monthly)(每月更新中)

Op amp summer and subtractor calculation

When several signals must be summed with weights, or two signals differenced, the op amp summer and subtractor do it in one stage. This page works the formulas, the resistor matching rules and the field usage.

1. How it works

The inverting summer merges inputs through Ra and Rb into the virtual ground node with feedback Rf, so the output is minus Rf times the sum of each input over its own resistor. With Ra 10k, Rb 20k and Rf 20k the output is minus two times Ua plus Ub. The virtual ground keeps the inputs from crosstalking, the natural advantage of the inverting connection, per GB/T 4728; follow with one inverter when the sign matters.

2. Numbers and practice

The single-op-amp subtractor feeds Ua to the inverting side through R1 and Ub to the non-inverting side through R2, with Rf feedback and R3 from the non-inverting input to ground. When the ratios match, R2 over R3 equals Rf over R1, the output is Rf over R1 times Ub minus Ua. With all four at 10k it is a plain difference. Resistor mismatch is the enemy of common-mode rejection, so start at 1 percent and go 0.1 percent or network resistors for precision.

3. Pitfalls and fixes

Summers mix sensor channels, audio and DAC outputs. Subtractors read bridge sensors and current shunts. Traps: mismatched ratios drop the common-mode rejection below 40dB and mains hum marches in; more than four inputs into one virtual ground raises the node impedance and the channels interact, so split stages or use an instrumentation amplifier; a single-supply subtractor clips negative inputs unless you lift the reference. Testing trick: tie both inputs to one voltage, the output should sit near zero, and any offset means the ratios are off.

4. Summer and subtractor design table

CircuitKey formulaWatch
Inverting summerUo = -Rf * sum(Ui/Ri)virtual ground fights crosstalk
Non-inverting summerdivider then sumchannels interact
SubtractorUo = (Rf/R1)(Ub - Ua)1 percent resistors minimum
Ratio mismatchCMR fallshum passes straight in
More than 4 inputsuse in-ampnode impedance rises
Single supplylift referencenegative swing clips

5. Notes

Use these stages for signal mixing, bridge conditioning and shunt sensing. Check resistor ratios twice at 1 percent precision minimum, split large sums into two stages, lift the reference on single supplies, and reach for an instrumentation amplifier when common-mode noise is heavy.

6. References

The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: Analogue computation circuits per GB/T 4728; safety IEC 60204-1. Always check the device datasheet and the product design file for ratings and derating.

7. Cautions

⚠️ Three common pitfalls:
① Subtractor ratios unmatched: common-mode rejection drops to 40dB and mains hum floods the output
② Eight inputs on one virtual ground: node impedance rises and channels leak into each other
③ Single-supply subtractor without a lifted reference: negative halves clip at the rail

Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.

Related reading

Related 3D models: Ready to build it? Download free 3D models & CAD drawings at MOULDL »
MOULDL · Electrical Knowledge Base · free self-study reference for electrical & automation engineers, 3D CAD models at MOULDL