Portuguese grammar will feel familiar if you know Spanish or French, with a few features of its own. Verbs show the person in their ending, nouns are masculine or feminine, and prepositions merge with articles into forms like do, na and pelo. Portuguese also has a future subjunctive and a personal infinitive that changes for the person. Brazil and Portugal share most of their grammar but differ in forms of address, the continuous and the place of object pronouns. Where they differ, both forms are given and labeled. Each topic starts with the rule and a table, then gives the uses, the exceptions and common mistakes.
-o nouns are mostly masculine, -a nouns mostly feminine, with exceptions
add -s; -ão becomes -ões, -ãos or -ães; -l becomes -is
o, a, os, as, also before possessives, names and countries
um, uma, uns, umas, left out before jobs and nationalities
um, dois and the hundreds agree in gender: duas casas, duzentas
-inho for small or dear, -ão for big: casinha, casarão
eu, tu, você, ele, ela, nós, vocês, eles, elas
tu with its own verb form; você and o senhor take the third person
meu, teu, seu, nosso agree with the thing owned; dele for his
este near me, esse near you, aquele far from both; isto, isso
mim and ti after prepositions; with com: comigo, contigo
o, a, os, as become -lo after -r and -no after nasal endings
me, te, lhe, nos, lhes for the person who receives: dei-lhe
levantar-se: eu me levanto in Brazil, eu levanto-me in Portugal
alguém, ninguém, algum, nenhum, tudo, todo, qualquer
Portugal dá-me, Brazil me dá; before the verb after não and que
adjectives match the noun: um carro novo, umas casas novas
after the noun as a rule; some change meaning before it: um grande homem
mais... do que, tão... como or quanto, o mais, -íssimo
-mente on the feminine form: rápida, rapidamente; bem and mal
muito, pouco, tanto agree before nouns, stay the same before adjectives
falo, como, parto: three groups by the ending -ar, -er, -ir
tenho, vou, faço, posso, durmo: irregular and changing stems
ser for identity and lasting traits, estar for states and the moment
há in writing and in Portugal, tem in spoken Brazil, always singular
ficar for fixed location, staying, and change: ficou triste
Brazil estou falando, Portugal estou a falar: an action in progress
falei, comi, parti: finished actions at a point in the past
fui, tive, fiz, pude, disse, vim: irregular stems
falava, comia: habits, descriptions and the background in the past
fiz for a finished event, fazia for the background or a habit
falado, comido; irregular feito, dito; pairs like pago, pagado
tenho feito for something repeated or ongoing up to now, not one past event
tinha feito for a past before the past; fizera in written style
vou viajar: ir in the present plus the infinitive
falarei, farei, direi: the formal future and guesses about now
falaria, faria, teria feito: wishes, polite requests and hypotheses
fala for tu, fale for você, não fales and não fale when negative
fale, coma, parta: built from the first person falo, como, parto
quero que, duvido que, é bom que, talvez plus the subjunctive
para que, embora, antes que, sem que, caso plus the subjunctive
quando puder, se fizer, assim que chegar: future events in clauses
falasse, fizesse: the subjunctive in the past and in unreal wishes
se tiver, se tivesse, se tivesse tido: real and unreal conditions
procuro alguém que fale inglês: a person or thing not known to exist
tenha feito, tivesse feito, tiver feito: completed actions
poder, dever, ter de or ter que, precisar plus the infinitive
gostar de, pensar em, sonhar com: the preposition comes with the verb
acabar de, voltar a, deixar de, costumar, ir plus gerúndio
ser plus the participle: a casa foi vendida, por for the doer
vendem-se casas, precisa-se de, aqui come-se bem
para eles saberem, antes de sairmos: an infinitive with a person ending
de plus o is do, em plus a is na, por plus o is pelo
em for where, a or para for where to: estou no Porto, vou ao Porto
às três, em maio, no domingo, há dois anos, daqui a
para for goal and destination, por for cause, route, exchange and the doer
à is a plus a: vou à praia, às duas horas, à noite
o que, quem, onde, quando, como, quanto; é que in speech
não before the verb; não... nada and não... ninguém are correct
Brazil asks with por que, Portugal with porque; porque answers in both
que, quem, onde, o qual, cujo join a clause to a noun
mas, porque, como, portanto, enquanto, no entanto
Ele disse que estava cansado: tenses shift back after a verb in the past
The level is the CEFR stage at which a topic is usually learned. It is a label, not an order: the reference itself follows the sections above.
Grammar sticks when you meet it in real sentences. These pages have Portuguese texts with a translation under every sentence.