Op-Amp Gain

Feedback resistors set the gain. Non-inverting: G = 1 + Rf/Rg (always ≥1, same sign). Inverting: G = −Rf/Rin (flips the signal).

Non-inverting gain
Inverting gain
Output (non-inv)
Output (inverting)

Ideal op-amp. Real output is clamped by the supply rails and gain falls off with frequency (gain-bandwidth product).

A helper, not a substitute for engineering judgment. Verify against the governing standard.