Gracias Por or Para? How to Say “Thank You for” in Spanish

Hi, I’m Kodak.

If you want to thank someone for a gift, their help, or something they did, should you say:

Gracias por…
or
Gracias para…?

The standard answer is:

Use gracias por to say “thank you for.”

Gracias por tu ayuda.
Thank you for your help.

Gracias por venir.
Thank you for coming.

In these sentences, por introduces the reason for the speaker’s gratitude.

Para, by contrast, commonly expresses a destination, intended recipient, purpose, or deadline. It does not normally introduce the reason why you are thanking someone.

Therefore:

Gracias por el regalo.
Thank you for the gift.

Gracias para el regalo.

This article explains how to use gracias por with nouns, pronouns, infinitives, and complete ideas. We will also compare it with gracias a, dar las gracias, and agradecer.

For a broader guide to expressions such as muchas gracias, mil gracias, and te lo agradezco, see How to Say Thank You in Spanish.

 

Learner

I know that gracias means “thank you.”

Why does “thank you for” use por?

Kodak

Because the words after por explain the reason for your gratitude.

You are thankful because of the gift, help, invitation, or action.

That cause-and-reason relationship is one of the central uses of por.

 

Learner

Then is gracias para always wrong?

Kodak

It is not the normal construction for “thank you for.”

However, para may appear later in a sentence if it belongs to a different phrase.

For example: Gracias por comprar comida para todos.

 

目次

Gracias Por or Para: Quick Answer

Pattern Use Example Meaning
gracias por + noun Thanking someone for a thing, favor, or event Gracias por el regalo. Thank you for the gift.
gracias por + infinitive Thanking someone for an action Gracias por ayudarme. Thank you for helping me.
gracias por + haber + participle Emphasizing a completed earlier action Gracias por haber venido. Thank you for having come.
gracias a + person Thanking or crediting a person; also “thanks to” Gracias a ti. Thanks to you / No, thank you.
para + recipient or purpose Belongs to another phrase, not to gracias Gracias por el regalo para Ana. Thank you for the gift for Ana.

 

The basic rule

Gracias por…
introduces the reason for the gratitude

Para…
introduces a purpose, intended recipient, destination, or deadline elsewhere in the sentence

 

Learner

Can I simply memorize gracias por as one fixed phrase?

Kodak

Yes. That is a very useful beginner strategy.

Remember gracias por + the reason.

Then you can add a noun, an action, or a longer phrase after it.

 

Why Does Gracias Use Por?

The expression dar las gracias means to express gratitude for a benefit, favor, or kindness received.

The preposition por commonly introduces a cause, motive, or reason.

In a sentence with gracias por, the phrase after por answers this question:

Why are you saying thank you?
Gracias por tu ayuda.
Why am I thankful?
→ Because of your help.

Gracias por venir.
Why am I thankful?
→ Because you came.

This is why por is more natural than para.

 

Learner

Is the meaning of por here closer to “for” or “because of”?

Kodak

The English translation is normally “for,” but the underlying relationship is close to “because of.”

Gracias por tu ayuda means that your help is the reason for my gratitude.

 

1. Gracias Por + Noun

Use gracias por before a noun or noun phrase when thanking someone for a thing, favor, quality, opportunity, or event.

Gracias por el regalo.
Thank you for the gift.

Gracias por tu ayuda.
Thank you for your help.

Gracias por la información.
Thank you for the information.

Gracias por la invitación.
Thank you for the invitation.

Gracias por tu paciencia.
Thank you for your patience.

Gracias por todo.
Thank you for everything.

The noun phrase names the reason for the gratitude.

 

Learner

Should I include an article after gracias por?

For example, is it por ayuda or por la ayuda?

Kodak

It depends on the noun and what you mean.

For a specific favor, Spanish normally says gracias por la ayuda or gracias por tu ayuda.

Learn each noun phrase with its natural article or determiner.

 

Gracias Por El, La, Los, and Las

The article agrees with the following noun.

Gracias por el consejo.
Thank you for the advice.

Gracias por la comida.
Thank you for the food or meal.

Gracias por los recuerdos.
Thank you for the memories.

Gracias por las fotos.
Thank you for the photos.

The preposition does not change. Only the article and noun vary.

 

Gracias Por Tu, Su, and Vuestra

A possessive can identify whose help, patience, or support you appreciate.

Gracias por tu apoyo.
Thank you for your support.

Gracias por su comprensión.
Thank you for your understanding.

Gracias por vuestra hospitalidad.
Thank you for your hospitality.

Su may refer formally to one person or to multiple people, depending on the context.

 

Learner

Is Gracias por su comprensión formal?

Kodak

It is commonly used in formal messages, notices, emails, and customer service.

With a friend, Gracias por entender or Gracias por tu comprensión may sound more personal.

 

2. Gracias Por + Infinitive

Use an infinitive after gracias por when thanking someone for an action.

gracias por + infinitive

Thank you for doing something.

Gracias por venir.
Thank you for coming.

Gracias por ayudarme.
Thank you for helping me.

Gracias por escucharme.
Thank you for listening to me.

Gracias por llamar.
Thank you for calling.

Gracias por esperar.
Thank you for waiting.

Gracias por compartirlo.
Thank you for sharing it.

English uses the -ing form after “thank you for,” but Spanish uses the infinitive.

English:
Thank you for helping me.

Spanish:
Gracias por ayudarme.

 

Learner

Why does Spanish use an infinitive instead of a gerund such as ayudando?

Kodak

After a preposition, Spanish generally uses the infinitive to name an action.

Therefore, say gracias por ayudarme, not gracias por ayudándome.

 

Object Pronouns Attach to the Infinitive

An unstressed object pronoun can be attached to the end of the infinitive.

ayudar + me = ayudarme
to help me

escuchar + nos = escucharnos
to listen to us

invitar + me = invitarme
to invite me

decir + lo = decirlo
to say or tell it

Gracias por invitarme.
Thank you for inviting me.

Gracias por decírmelo.
Thank you for telling me.

Gracias por acompañarnos.
Thank you for accompanying or joining us.

A written accent may be added to preserve the original stress after pronouns are attached, as in decírmelo.

 

Learner

Can I put the pronoun before the infinitive and say gracias por me ayudar?

Kodak

Not in standard Spanish.

Attach the pronoun to the infinitive: gracias por ayudarme.

The pronoun-before-infinitive order follows different rules in some other Romance languages, but not here.

 

Common Gracias Por + Infinitive Expressions

Spanish English
Gracias por avisarme. Thank you for letting me know.
Gracias por recordármelo. Thank you for reminding me.
Gracias por recibirme. Thank you for receiving or welcoming me.
Gracias por responder. Thank you for replying.
Gracias por entender. Thank you for understanding.
Gracias por preocuparte. Thank you for caring.

 

Learner

Does Gracias por avisarme literally mean “Thank you for warning me”?

Kodak

Avisar can mean to warn, notify, or let someone know.

In many everyday situations, Gracias por avisarme is the natural equivalent of “Thanks for letting me know.”

 

3. Gracias Por Haber + Past Participle

Use haber + past participle when you want to emphasize that the thanked action was already completed before the moment of thanking.

gracias por haber + past participle

Thank you for having done something.

Gracias por haber venido.
Thank you for coming.
Literally: Thank you for having come.

Gracias por haberme ayudado.
Thank you for helping me.

Gracias por haber confiado en nosotros.
Thank you for having trusted us.

Gracias por haber respondido tan rápido.
Thank you for replying so quickly.

The simple infinitive is often sufficient:

Gracias por venir.
Thank you for coming.

Gracias por haber venido.
Thank you for having come.
→ Gives slightly more explicit emphasis to the completed action.

 

Learner

Do I need haber venido whenever the person has already arrived?

Kodak

No.

Gracias por venir is natural even after the person has arrived.

Use haber venido when you want to make the earlier completion more explicit.

 

Pronoun Placement with Haber

The pronoun normally attaches to the infinitive haber, not to the participle.

Gracias por haberme ayudado.

Gracias por haber ayudádome.

Gracias por habérmelo explicado.
Thank you for explaining it to me.

Because several pronouns are attached to haber, a written accent is needed in habérmelo.

 

4. Gracias Por Todo and Gracias Por Nada

Gracias por todo is a warm and common expression used when the speaker is grateful for many things.

Gracias por todo lo que has hecho por mí.
Thank you for everything you have done for me.

Gracias por todo. Nunca olvidaré tu ayuda.
Thank you for everything. I will never forget your help.

Gracias por nada, however, is usually sarcastic.

No me ayudaste en absoluto. Gracias por nada.
You did not help me at all. Thanks for nothing.

 

Learner

Can gracias por nada ever be sincere?

Kodak

In ordinary conversation, it is usually ironic or sarcastic.

It tells the listener that they did nothing useful.

Be careful with it because it can sound hostile.

 

5. Why Not Gracias Para?

Para commonly expresses ideas such as:

intended recipient
purpose
destination
deadline
use or function

These relationships do not normally explain the cause of your gratitude.

Reason for gratitude:
Gracias por el café.
Thank you for the coffee.

Intended recipient:
El café es para Marta.
The coffee is for Marta.

The English word “for” appears in both translations, but Spanish uses different prepositions because the underlying relationships are different.

 

Learner

English says “Thank you for the gift,” and a gift can be “for” someone.

Why doesn’t Spanish use the same preposition?

Kodak

Because the two uses of English “for” express different relationships.

In “Thank you for the gift,” the gift is the reason for the gratitude.

In “The gift is for Ana,” Ana is the intended recipient.

 

Por and Para Can Appear in the Same Sentence

Although gracias para is not the standard pattern, para may appear later because it belongs to another part of the sentence.

Gracias por comprar comida para todos.
Thank you for buying food for everyone.

por comprar comida
→ the action that caused the gratitude

para todos
→ the people for whom the food was intended

Gracias por preparar este informe para la reunión.
Thank you for preparing this report for the meeting.

por preparar
→ reason for thanking

para la reunión
→ purpose of the report

 

Learner

So seeing para after gracias does not automatically make the sentence wrong?

Kodak

Correct.

Look at which words the preposition connects.

In Gracias por el regalo para Ana, por belongs to gracias, while para Ana describes the gift.

 

Gracias, Esto Es Para Ti

Punctuation can separate two different ideas:

Gracias. Esto es para ti.
Thank you. This is for you.

Gracias, Ana. Este regalo es para ti.
Thank you, Ana. This gift is for you.

Here, para ti belongs to esto es or el regalo es. It is not part of a construction meaning “thank you for.”

 

Learner

What about gracias para ti?

Can it mean “thanks for you” or “thanks to you”?

Kodak

Not normally.

To thank the other person directly, say gracias a ti.

To say that something is intended for the person, use a separate construction such as Esto es para ti.

 

6. Gracias A vs. Gracias Por

Gracias a and gracias por are both correct, but they serve different functions.

gracias a + person or beneficial cause
thanks to someone or something

gracias por + reason for gratitude
thank you for something or doing something

Gracias a ti, terminamos a tiempo.
Thanks to you, we finished on time.

Gracias por ayudarnos.
Thank you for helping us.

The two can be combined:

Gracias a todos por venir.
Thank you all for coming.

a todos
→ the people being thanked

por venir
→ the action for which they are thanked

 

Learner

Does gracias a ti always mean “thanks to you”?

Kodak

It can also be used as a reply meaning “No, thank you” or “The thanks go to you.”

The context tells you whether the speaker is crediting the person or returning the thanks.

 

Gracias A Dios

Gracias a Dios is a common expression meaning “thank God” or “thank goodness.”

Gracias a Dios, nadie resultó herido.
Thank God, no one was injured.

Ya terminó el examen, gracias a Dios.
The exam is over now, thank goodness.

It commonly expresses relief that a positive event occurred or a feared negative event did not occur.

 

Gracias A Can Introduce a Cause

The expression gracias a can introduce a person or circumstance that produced a beneficial result.

Conseguí el trabajo gracias a tu recomendación.
I got the job thanks to your recommendation.

El proyecto tuvo éxito gracias al equipo.
The project succeeded thanks to the team.

Traditionally, gracias a is associated with a favorable result. In ironic speech, speakers may also use it before an undesirable cause.

Gracias a tu retraso, perdimos el tren.
Thanks to your delay, we missed the train.

The irony makes it closer to “because of your delay.”

 

Learner

What is the difference between Gracias a Ana and Gracias por Ana?

Kodak

Gracias a Ana identifies Ana as the person receiving credit or thanks.

Gracias por Ana would make Ana herself the reason for gratitude and requires a special context, such as being thankful that Ana is in your life.

Usually, state the idea more fully to avoid ambiguity.

 

7. Dar las Gracias A Alguien Por Algo

The full verbal expression is:

dar las gracias a alguien por algo
to thank someone for something

Le di las gracias a Marta por su ayuda.
I thanked Marta for her help.

a Marta
→ the person thanked

por su ayuda
→ the reason for the thanks

Quiero darles las gracias por venir.
I want to thank you all for coming.

Dimos las gracias al médico por su paciencia.
We thanked the doctor for his or her patience.

Remember the contraction:

a + el = al

Dimos las gracias al profesor.

 

Learner

Why does the sentence use both le and a Marta?

Kodak

Le is the indirect-object pronoun, while a Marta identifies or emphasizes the person.

This type of indirect-object doubling is normal in Spanish.

 

Giving Thanks to More Than One Person

Les doy las gracias a mis padres por todo.
I thank my parents for everything.

Queremos daros las gracias por vuestra ayuda.
We want to thank you for your help.

Daros is associated with informal plural vosotros usage, especially in Spain.

Across much of Latin America, speakers would commonly use:

Queremos darles las gracias por su ayuda.
We want to thank you for your help.

 

8. Agradecer: Another Way to Say “To Thank”

The verb agradecer means “to thank,” “to appreciate,” or “to be grateful for.”

Unlike the expression gracias por, the thing appreciated is commonly used as a direct object without por.

Agradezco tu ayuda.
I appreciate your help.

Gracias por tu ayuda.
Thank you for your help.

Te agradezco el consejo.
I thank you for the advice.

Agradecemos su paciencia.
We appreciate your patience.

Le agradecí a Ana su sinceridad.
I thanked Ana for her honesty.

The usual pattern is:

agradecer algo a alguien
to thank someone for something

agradecerle algo a alguien
to thank someone for something, with an indirect-object pronoun

 

Learner

Can I say Agradezco por tu ayuda?

Kodak

The safest general construction is Agradezco tu ayuda, without por.

With gracias, use Gracias por tu ayuda.

Learn the two grammatical patterns separately.

 

Agradecer Que + Verb

When the thanked action has an explicitly stated subject, agradecer can be followed by a clause beginning with que.

Agradezco que estés aquí.
I appreciate your being here.

Te agradezco que hayas venido.
I appreciate that you came.

Le agradecemos que nos haya respondido.
We appreciate your having replied to us.

The subjunctive is commonly used because the clause describes the action or situation that is emotionally evaluated and appreciated.

 

Learner

What is the difference between Gracias por venir and Te agradezco que hayas venido?

Kodak

They can express the same basic gratitude.

Gracias por venir is shorter and extremely common.

Te agradezco que hayas venido is grammatically fuller and may sound more deliberate or formal.

 

9. Gracias Porque vs. Gracias Por

Spanish may sometimes use gracias porque before a complete clause containing its own conjugated verb.

Gracias porque siempre estás conmigo.
Thank you because you are always with me.

However, in many ordinary contexts, a construction with gracias por and an infinitive or noun is more concise and idiomatic:

Gracias por estar siempre conmigo.
Thank you for always being with me.
por
is a preposition followed by a noun or infinitive

porque
is a conjunction followed by a conjugated clause

For beginners, gracias por + noun or infinitive is the most useful and reliable pattern.

 

Learner

Is gracias porque wrong, then?

Kodak

Not automatically.

It introduces a complete explanation with a conjugated verb.

Nevertheless, when thanking someone for an action, gracias por + infinitive is usually the clearer beginner pattern.

 

10. Gracias Por Que: Two Separate Words

In rare and structurally complex sentences, the sequence por que may occur because por and que belong to separate grammatical units.

However, this is not the normal pattern learners need for “thank you for.”

For the basic expression, use:

gracias por + noun
gracias por + infinitive

Do not add que simply because English continues with a complete idea.

Natural:
Gracias por ayudarme.

Not the standard equivalent:
Gracias por que ayudarme.

 

11. Gracias Por in Formal Emails

Gracias por is useful in professional correspondence, but the level of formality depends on the rest of the expression.

Thank You for Your Time

Gracias por su tiempo.
Thank you for your time.

Thank You for Your Attention

Gracias por su atención.
Thank you for your attention.

Thank You for Your Response

Gracias por su respuesta.
Thank you for your response.

Thank You for Contacting Us

Gracias por ponerse en contacto con nosotros.
Thank you for contacting us.

Thank You in Advance

Gracias de antemano por su ayuda.
Thank you in advance for your help.

Gracias de antemano may sound efficient and polite, but in some situations it can also imply that the other person is already expected to agree. The surrounding request should remain courteous.

 

Learner

Is Gracias por su tiempo appropriate after a job interview?

Kodak

Yes. It is polite and professional.

You can make it more specific by saying Gracias por su tiempo y por la oportunidad de conversar.

 

Repeating Por

When two coordinated elements have different grammatical forms, repeating por can improve clarity.

Gracias por su tiempo y por responder a mis preguntas.
Thank you for your time and for answering my questions.

The repetition separates:

por su tiempo
noun phrase

por responder
infinitive phrase

With two similar short nouns, one por may be enough:

Gracias por su tiempo y paciencia.
Thank you for your time and patience.

 

Learner

Do I have to repeat por before every item?

Kodak

No.

One por can introduce coordinated nouns.

Repeat it when the sentence becomes clearer, especially when combining a noun with an infinitive or emphasizing separate reasons.

 

12. Gracias Por in Casual Conversation

In informal conversation, Spanish speakers often shorten or intensify the expression.

Gracias por todo.
Thanks for everything.

Muchas gracias por venir.
Thank you very much for coming.

Mil gracias por tu ayuda.
A thousand thanks for your help.

Muchísimas gracias por estar aquí.
Thank you so very much for being here.

Intensifiers change the strength or warmth of the gratitude, but the preposition remains por.

 

No, Gracias

No, gracias politely refuses an offer.

¿Quieres más café?
Would you like more coffee?

No, gracias.
No, thank you.

No por is needed because the speaker is not naming a reason for gratitude.

 

Learner

Can I say No, gracias por when refusing something?

Kodak

You need to complete the phrase after por.

For example: No, gracias, pero gracias por ofrecer.

For a simple refusal, No, gracias is enough.

 

One Situation Using Por, Para, and A

Gracias a Marta por preparar comida para todos.
Thank you to Marta for preparing food for everyone.

This sentence contains three prepositions with three different functions:

a Marta
→ person receiving the thanks

por preparar
→ action that caused the gratitude

para todos
→ intended recipients of the food

The prepositions are not interchangeable because each one expresses a different relationship.

 

Learner

Can you give me one final memory rule for gracias por, gracias a, and para?

Kodak

Por introduces what you are thankful for.

A identifies the person you thank or credit.

Para belongs to a separate idea such as who something is intended for or what purpose it serves.

 

Common Beginner Mistakes

Mistake 1: Using Gracias Para for “Thank You for”

Incorrect:
Gracias para tu ayuda.

Correct:
Gracias por tu ayuda.
Thank you for your help.

Mistake 2: Using a Gerund After Por

Incorrect:
Gracias por ayudándome.

Correct:
Gracias por ayudarme.
Thank you for helping me.

Mistake 3: Placing the Pronoun Before the Infinitive

Incorrect:
Gracias por me escuchar.

Correct:
Gracias por escucharme.
Thank you for listening to me.

Mistake 4: Using Gracias Para Ti Instead of Gracias A Ti

To return or direct the thanks:
Gracias a ti.
No, thank you.

To identify an intended recipient:
Esto es para ti.
This is for you.

Mistake 5: Using Por After Agradecer in the Basic Pattern

Safest standard pattern:
Agradezco tu ayuda.
I appreciate your help.

With gracias:
Gracias por tu ayuda.

Mistake 6: Forgetting A Before the Person Thanked

Correct full structure:
Le di las gracias a Ana por su ayuda.
I thanked Ana for her help.

Mistake 7: Confusing Gracias Por with Gracias A

Gracias por tu recomendación.
Thank you for your recommendation.

Conseguí el trabajo gracias a tu recomendación.
I got the job thanks to your recommendation.

Mistake 8: Translating Every English For as Para

English “for” can represent many relationships. Spanish chooses its preposition according to meaning.

Reason: gracias por el regalo
Recipient: un regalo para Ana
Duration: estudié por dos horas
Deadline: lo necesito para mañana

 

Practice Quiz: Gracias Por, Para, or A?

Complete each sentence with the most suitable preposition.

1. Gracias _____ tu ayuda.

2. Gracias _____ venir.

3. Este regalo es _____ ti.

4. Gracias _____ todos _____ participar.

5. Conseguimos terminar _____ tu ayuda.

6. Gracias _____ comprar comida _____ los niños.

7. Le di las gracias _____ María _____ su paciencia.

8. Gracias _____ haberme escuchado.

9. Este informe es _____ la reunión de mañana.

10. Gracias _____ la información.

11. Este café es _____ Carlos.

12. Gracias _____ ti, todo salió bien.

 

Quiz Answers and Explanations

1. por
The help is the reason for the gratitude.

2. por
Use gracias por + infinitive.

3. para
The person is the intended recipient of the gift.

4. a / por
A todos identifies the people thanked; por participar gives the reason.

5. gracias a
The help produced the beneficial result.

6. por / para
Buying is the thanked action; the food is intended for the children.

7. a / por
María is the person thanked; her patience is the reason.

8. por
Use por haber + participle for the completed action.

9. para
The meeting is the purpose or intended use of the report.

10. por
The information is the reason for the gratitude.

11. para
Carlos is the intended recipient of the coffee.

12. a
The expression gracias a ti credits the person for the positive result.

 

Frequently Asked Questions

Is it gracias por or gracias para?

Use gracias por to say “thank you for.” The phrase after por states the reason for the gratitude.

How do you say “thank you for your help” in Spanish?

Say Gracias por tu ayuda informally or Gracias por su ayuda formally.

How do you say “thank you for helping me” in Spanish?

Say Gracias por ayudarme. Spanish uses the infinitive after the preposition rather than a gerund.

Why does gracias use por instead of para?

Por introduces the cause or reason for the gratitude. Para normally introduces a purpose, destination, deadline, or intended recipient.

Can para appear in a sentence beginning with gracias?

Yes, when para belongs to a separate phrase. For example, Gracias por preparar comida para todos means “Thank you for preparing food for everyone.”

What is the difference between gracias por and gracias a?

Gracias por introduces what you are thankful for. Gracias a identifies a person or beneficial cause receiving credit.

Is gracias para ti correct?

It is not the normal way to say “thanks to you.” Say Gracias a ti. To say that an object is intended for someone, use a separate expression such as Esto es para ti.

Can you say gracias por venir?

Yes. Gracias por venir is the standard way to say “Thank you for coming.”

What is the difference between gracias por venir and gracias por haber venido?

Both are correct. Gracias por haber venido places slightly more explicit emphasis on the action having already been completed.

Can you say gracias porque?

Gracias porque may introduce a complete clause with a conjugated verb. However, gracias por + noun or infinitive is generally the most useful pattern for beginners.

How do you formally say “thank you for your time”?

Say Gracias por su tiempo. A more extended version is Muchas gracias por su tiempo y atención.

What is the full Spanish structure for thanking someone for something?

Use dar las gracias a alguien por algo: Le di las gracias a Marta por su ayuda.

 

Por, Para, or A After Gracias?

Follow the chain to see which word actually belongs right after “gracias”.

Q1. Is the word right after “gracias” the reason you are grateful — a thing, favor, or action?
Yes → por
Gracias por tu ayuda. / Gracias por el regalo.
No, it names a person you want to credit → gracias a
Gracias a ti. / Gracias a Dios.
Q2. If it is an action, do you have a bare verb form (an infinitive), not an “-ando” form?
Yes, plain verb → por + infinitive
por ayudarme, NOT por ayudándome — Spanish never uses the gerund here.
You want to stress it already happened → por haber + participle
por haber venido — same idea, more explicit about completion.
Q3. Does a later word in the sentence name a recipient, purpose, or deadline that has nothing to do with why you are thankful?
Yes, it belongs to a different part of the sentence → para
Gracias por preparar comida para todos — para todos is separate from the thanks.
No such word here → stick with por
Reason and recipient are not the same job — don’t swap them.

※ Gracias para is not standard Spanish. Por always introduces the reason for the thanks; para only shows up when it is doing a completely separate job elsewhere in the sentence.

Gracias Por or Para: Summary

● Use gracias por for “thank you for”
Gracias por el regalo.

● Use gracias por + infinitive for an action
Gracias por ayudarme.

● Spanish uses an infinitive, not an English-style -ing form
por ayudarme, not por ayudándome

● Use por haber + participle to emphasize completion
Gracias por haber venido.

● Use gracias a for a person or beneficial cause
Gracias a ti.

● Use para for an intended recipient or purpose
El regalo es para Ana.

● Por and para may occur in the same sentence
Gracias por preparar la comida para todos.

● The full structure is:
dar las gracias a alguien por algo

● With agradecer, the basic pattern changes
Agradezco tu ayuda.

 

Kodak

Remember that English “for” does not always correspond to Spanish para.

After gracias, use por because the following phrase explains the reason for your gratitude.

Use para only when it expresses a separate idea such as an intended recipient or purpose.

 

Related Guide

Want the full picture of how por and para divide up the work in Spanish? Read our main guide: Por vs. Para: Rules, Tricks, and Examples.