Using Google Docs, I need an X with a line on top, the equivalent to latex \bar{x} and what statisticians call "x bar". I was using an equation field and \overline but it adds the line over the entire equation. Is there a way to do this?

4 Answers 4


Under the "math operations" button on the equation bar, there's the symbol you are looking for.


Or... you can search for "x bar" in Google and do a copy/paste from one of the web pages that come up. It looks a lot better than the x bar in Google Docs: x̄


The answer is just to press enter after you are finished writing characters with the overline, and it will toggle it off.


I was able to achieve this by going to Insert Menu > Special Characters > then search overline.

A very late answer but I hope this helps someone later.

  • 1
    Definitely helped, thank you!
    – Raymo111
    Commented Jan 22, 2022 at 3:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.