It is sometimes challenging to determine if a molecule is going to be acidic or basic if the system in which it is reacting is not considered. An important point to consider when dealing with acids and bases is that acid/base strength is inherently tied to the solvent. For this answer, I'm going to limit the discussion to acids and bases in an aqueous environment.
It is helpful to consider the terms acid and base as a means to classify substances. This way, Chemists can explain chemical reactivity and structure-function relationships of substances. Very early classification systems depended on our senses (acids are sour, bases are slippery to the touch) and more recent classification systems utilize structural characterization tools such as NMR or crystallography. Many classification systems have been proposed over the years, and only a few of them have found sufficiently widespread use to end up in textbooks used in the standard Chemistry curriculum. Below are a few systems, taken from Miessler & Tarr's Inorganic Chemistry textbook. The 2nd through 4th entries are those in common use today.
- NAME (YEAR) acid definition [example]; base definition [example]
- Liebig (~1776) Acid: an oxide of N, P, S [$\ce{SO_3}$]; Base: Reacts with
acid [$\ce{NaOH}$]
- Arrhenius (1894) Acid: Forms hydronium ion [$\ce{HNO_3}$]; Base: Forms hydroxide ion [$\ce{NaOH}$]
- Brønsted (1923) Acid: Proton donor [$\ce{HCl}$]; Base: Proton acceptor [$\ce{NaOH}$]
- Lewis (1923) Acid: Electron-pair acceptor [$\ce{Ag^+}$]; Base: Electron-pair donor [$\ce{NH_3}$]
- Ingold-Robinson (1932) Acid: Electrophile [$\ce{BF_3}$]; Base: Nucleophile [$\ce{NH_3}$]
- Lux-Flood (1939) Acid: Oxide ion acceptor [$\ce{SiO_2}$]; Base: Oxide ion donor [$\ce{CaO}$]
- Usanovich (1939) Acid: Electron acceptor [$\ce{Cl_2}$]; Base: Electron donor [$\ce{Na}$]
- Solvent system (1950s) Acid: Solvent cation [$\ce{BrF_2^+}$]; Base: Solvent anion [$\ce{BrF_4^-}$]
- Frontier Orbitals (1960s) Acid: LUMO of acceptor [$\ce{BrF_3}$]; Base: HOMO of donor [$\ce{NH_3}$]
I find the various acid/base systems very enlightening. Note how From Arrhenius through Lewis there was a broadening of the acid/base classification system; Arrhenius can't be used to describe non-aqueous acids and bases and Brønsted can't be used with aprotic substances. Yet, the Lewis definition incorporates the previous two (a Brønsted acid is also a Lewis acid; an Arrhenius base is also a Lewis base). One then may ask, what's up with the Lux-Flood definition then? This definition is counter to the trend of broadening the classification system, and yet it is useful in describing anhydrous solid-state chemistry and is used to describe geochemical reactions as well as the chemistry of high-temperature melts. My point being: classification of substances into acids and bases is only meaningful if it helps explain chemical phenomena.
Which brings us to the Usanovich definition, which essentially states that every reaction is an acid-base reaction. Such a broad definition is not overly helpful, and to those of us with an affinity towards electrochemistry (ahem), is somewhat arrogant :-)
I do believe that determining if a substance will behave as an acid or a base requires a bit of chemical intuition (or a Socratic method). For example, you may have performed an experiment in which $\ce{KOH}$ served as a base; you know that, like potassium, sodium is an alkali metal; therefore you presume that $\ce{NaOH}$ would be a base as well.
Back to the question at hand
So how do I suggest one use this information to predict whether a substance will behave as an acid or a base using its structure alone? Personally, I find the Lewis theory as the most useful classification system in answering this type of question. If the structure of a compound is set before me and I am to predict its acid/base chemistry, I will ask two questions:
- Are there any lone pair electrons that can be donated?
- Are there any electron-deficient atoms that could serve as electron pair acceptors?
If the answer to question 1 is yes, then the molecule can behave as a base. If the answer to question 2 is yes, then the molecule is an acid. If both are true, then I have an amphoteric substance.
In proofreading this answer, I realize I said I would restrict myself to aqueous systems, in which case using the Brønsted system may be more helpful. In this case, the questions become:
- Is there a hydrogen that can be donated? (You'll be right more often than you are wrong if you rephrase this question as "Is there a hydrogen that is attached to something other than carbon?").
- Is there a lone pair that can accept a proton?