You can tell if a guitar is good by inspecting the finish and hardware, checking that the neck is straight and not twisted, confirming that it tunes up and stays in tune, and playing it for comfort and even tone. High action or a few buzzes often mean the guitar needs a setup, not that it is a bad instrument. Official Fender factory string height on many electric models is 4/64 inch on both sides at the 17th fret, and official Fender acoustic height is 6/64 inch bass and 5/64 inch treble at the 14th fret.
Quick answer: inspect the guitar in person when you can: look for cracks, loose parts, and a neck that is not twisted, then tune it and play every string at several frets. Official Fender electric factory action is often 4/64 inch at the 17th fret, and official Fender acoustic action is 6/64 inch bass and 5/64 inch treble at the 14th fret; higher action usually needs a setup, not a rejection. Walk away from a twisted neck, major cracks, or electronics that cannot be fixed for less than the guitar is worth, and judge comfort and tone last.
Disclosure: some links in this guide are affiliate links. As an Amazon Associate, Sandy Music Lab earns from qualifying purchases at no extra cost to you, and commissions never decide which products make a list. See our editorial policy.

How can you tell if a guitar is good before you buy it?
A good guitar is structurally sound, plays in tune once it is set up, and feels comfortable in your hands. Start with a careful visual check, then test the neck, tuners, intonation, and electronics, and only then decide whether the tone and feel are right for you. A guitar that needs a setup can still be a good instrument.
Use this as a buying checklist for new or used guitars, including budget models. For first-instrument shortlists, see best starter guitars and best beginner guitars. Brand context is in best guitar brands.