I am looking to create a vertical equal sign that might function similarly to an underbrace. I often use this symbol when taking notes on paper.

 (x+z) + (y+d) = 10
  ||      || 
  5       5

The alignment is not entirely perfect in this example but I believe the idea comes across.

  • 4
    You could also use \underbrace{..}_{{}=5}.
    – Werner
    Mar 2, 2013 at 9:46
  • @Werner Yes that's functional but I'd personally prefer it with no braces and a rotated equals sign.
    – jaynp
    Mar 2, 2013 at 9:49

2 Answers 2


Here is another way of achieving this. You use the command \equalto{equation}{value}.





    \equalto{(x + z)}{5} + \equalto{(y + d)}{5} = 10


And this is the output:

enter image description here

As you can see, I added some spacing to the vertical equal manually (and some horizontal spacing to the \equalto command), of course, you can tweak both to get the exact output you want.

  • This has the right spaces around the equal signs, but reduces the size of the "5" which is incorrect -- the "5" shoul have the same size at the "10", which does not. Oct 31, 2022 at 4:45
  • I found adding \displaystyle to the second argument of overset fixes the size problem, and I found the kerning unnecessary for my needs. ``` \newcommand{\verteq}[2]{ \underset{ \overset{ \rotatebox{90}{$\,=$} }{\displaystyle{#2}} }{\displaystyle{#1}} } ```
    – JeremyKun
    Jun 3, 2023 at 18:17

thanks to detexify, I just found that if you are using amsmath,amssymb then you have access to \shortparallel


$$\stackbelow{(x+z)}{5}+\stackbelow{(y+d)}{5} = 10.$$

The result, obtained thanks to quicklatex:


  • It is not really good because it differs too much from the horizontal equal sign right there on the equation. Oct 30, 2022 at 1:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .