Maison neuve : ai-je les moyens d’acheter?

Vous vous demandez si votre budget vous permet de faire le saut vers une maison neuve? Laissez-nous vous aider à y voir plus clair.

D’abord, il existe plusieurs outils en ligne pour vous aider et plusieurs parmi ceux-ci sont indépendants des grandes institutions financières ou des courtiers. Cela vous permet d’examiner votre situation financière et votre réelle capacité de payer de manière plus objective… et vous évitera toute sollicitation future.

 

Voici quelques liens à visiter pour commencer vos démarches. Évidemment, la première chose à faire (et non la moindre!) est d’établir votre budget actuel.

Truc pour calculer votre budget de la façon la plus précise possible : pour ne rien oublier, sortez vos relevés bancaires et de cartes de crédit des trois derniers mois et suivez-les, ligne par ligne. On a souvent tendance à sous-estimer les dépenses cachées!

Cet outil du gouvernement du Canada est très convivial et complet :

http://itools-ioutils.fcac-acfc.gc.ca/BC-CB/NetInc-RevNet-fra.aspx

Le site d’Épargne Placements Québec fournit aussi un tableau facile à suivre pour calculer votre budget personnel :

http://www.epq.gouv.qc.ca/F/Info/Calculateur/BudgetPersonnel.aspx

 

Évidemment, vous pouvez sauter l’étape du budget et utiliser l’outil d’évaluation d’admissibilité à un prêt hypothécaire du gouvernement du Canada, mais ce dernier ne tient pas compte de tous les aspects de votre vie : http://itools-ioutils.fcac-acfc.gc.ca/MQ-HQ/MQ-EAPH-fra.aspx

Enfin, voici la calculatrice hypothécaire pour calculer vos versements :

http://itools-ioutils.fcac-acfc.gc.ca/MC-CH/MC-CH-fra.aspx?WT.mc_id=ManagingMoney-Article2-MortgageCalculator

 

Pour voir toutes les calculatrices disponibles.

 

Un mot sur les nouvelles règles hypothécaires

Plusieurs acheteurs se demandent s’ils ont toujours les moyens d’acheter une propriété à la suite de l’entrée en vigueur des nouvelles règles hypothécaires.

De façon générale, les nouvelles règles touchent presque tout le monde, mais de manière différente. Tandis que seulement 10 % des gens pourraient se voir refuser un prêt hypothécaire, certains devront tout simplement revoir leur projet afin de respecter le montant d’emprunt maximal. Le dossier de l’acheteur sera analysé un peu plus rigoureusement; pour être admissible à un prêt hypothécaire, celui-ci doit présenter un bon crédit, de bons ratios d’endettement de même que des revenus stables.

L’outil d’évaluation d’admissibilité à un prêt hypothécaire proposé ci-dessus tient compte de tous les nouveaux facteurs pouvant influencer l’octroi d’un prêt.

 

Courtier hypothécaire : pourquoi?

Les institutions financières offrent des produits hypothécaires très variés et se livrent une forte concurrence pour attirer de nouveaux clients.

Dans ce contexte, il peut être avantageux de magasiner votre hypothèque avec l’aide d’un courtier hypothécaire, car un refus d’un côté ne signifie pas que toutes les institutions ne vous prêteront pas. En effet, le courtier a pour but d’établir votre capacité d’emprunt et de trouver le produit hypothécaire qui correspond le mieux à vos besoins, et ce, en toute neutralité.

Demandez de l’aide, ça ne coûte rien!

 

Partager cet article

PHNjcmlwdCB0eXBlPSJ0ZXh0L2phdmFzY3JpcHQiPnZhciBnZm9ybTtnZm9ybXx8KGRvY3VtZW50LmFkZEV2ZW50TGlzdGVuZXIoImdmb3JtX21haW5fc2NyaXB0c19sb2FkZWQiLGZ1bmN0aW9uKCl7Z2Zvcm0uc2NyaXB0c0xvYWRlZD0hMH0pLGRvY3VtZW50LmFkZEV2ZW50TGlzdGVuZXIoImdmb3JtL3RoZW1lL3NjcmlwdHNfbG9hZGVkIixmdW5jdGlvbigpe2dmb3JtLnRoZW1lU2NyaXB0c0xvYWRlZD0hMH0pLHdpbmRvdy5hZGRFdmVudExpc3RlbmVyKCJET01Db250ZW50TG9hZGVkIixmdW5jdGlvbigpe2dmb3JtLmRvbUxvYWRlZD0hMH0pLGdmb3JtPXtkb21Mb2FkZWQ6ITEsc2NyaXB0c0xvYWRlZDohMSx0aGVtZVNjcmlwdHNMb2FkZWQ6ITEsaXNGb3JtRWRpdG9yOigpPT4iZnVuY3Rpb24iPT10eXBlb2YgSW5pdGlhbGl6ZUVkaXRvcixjYWxsSWZMb2FkZWQ6ZnVuY3Rpb24obyl7cmV0dXJuISghZ2Zvcm0uZG9tTG9hZGVkfHwhZ2Zvcm0uc2NyaXB0c0xvYWRlZHx8IWdmb3JtLn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sgICAgICAgICAgICBpZiAoIHZpc2liaWxpdHlUZXN0RGl2ICkgeyAgICAgICAgICAgICAgICB2aXNpYmlsaXR5VGVzdERpdi5wYXJlbnROb2RlLnJlbW92ZUNoaWxkKCB2aXNpYmlsaXR5VGVzdERpdiApOyAgICAgICAgICAgIH0gICAgICAgIH0gICAgICAgIGZ1bmN0aW9uIGRlYm91bmNlKCBmdW5jLCB3YWl0LCBpbW1lZGlhdGUgKSB7ICAgICAgICAgICAgdmFyIHRpbWVvdXQ7ICAgICAgICAgICAgcmV0dXJuIGZ1bmN0aW9uKCkgeyAgICAgICAgICAgICAgICB2YXIgY29udGV4dCA9IHRoaXMsIGFyZ3MgPSBhcmd1bWVudHM7ICAgICAgICAgICAgICAgIHZhciBsYXRlciA9IGZ1bmN0aW9uKCkgeyAgICAgICAgICAgICAgICAgICAgdGltZW91dCA9IG51bGw7ICAgICAgICAgICAgICAgICAgICBpZiAoICFpbW1lZGlhdGUgKSBmdW5jLmFwcGx5KCBjb250ZXh0LCBhcmdzICk7ICAgICAgICAgICAgICAgIH07ICAgICAgICAgICAgICAgIHZhciBjYWxsTm93ID0gaW1tZWRpYXRlICYmICF0aW1lb3V0OyAgICAgICAgICAgICAgICBjbGVhclRpbWVvdXQoIHRpbWVvdXQgKTsgICAgICAgICAgICAgICAgdGltZW91dCA9IHNldFRpbWVvdXQoIGxhdGVyLCB3YWl0ICk7ICAgICAgICAgICAgICAgIGlmICggY2FsbE5vdyApIGZ1bmMuYXBwbHkoIGNvbnRleHQsIGFyZ3MgKTsgICAgICAgICAgICB9OyAgICAgICAgfSAgICAgICAgY29uc3QgZGVib3VuY2VkVHJpZ2dlclBvc3RSZW5kZXIgPSBkZWJvdW5jZSggZnVuY3Rpb24oKSB7ICAgICAgICAgICAgdHJpZ2dlclBvc3RSZW5kZXIoKTsgICAgICAgIH0sIDIwMCApOyAgICAgICAgaWYgKCB2aXNpYmlsaXR5VGVzdERpdiAmJiB2aXNpYmlsaXR5VGVzdERpdi5vZmZzZXRQYXJlbnQgPT09IG51bGwgKSB7ICAgICAgICAgICAgY29uc3Qgb2JzZXJ2ZXIgPSBuZXcgTXV0YXRpb25PYnNlcnZlciggKCBtdXRhdGlvbnMgKSA9PiB7ICAgICAgICAgICAgICAgIG11dGF0aW9ucy5mb3JFYWNoKCAoIG11dGF0aW9uICkgPT4geyAgICAgICAgICAgICAgICAgICAgaWYgKCBtdXRhdGlvbi50eXBlID09PSAnYXR0cmlidXRlcycgJiYgdmlzaWJpbGl0eVRlc3REaXYub2Zmc2V0UGFyZW50ICE9PSBudWxsICkgeyAgICAgICAgICAgICAgICAgICAgICAgIGRlYm91bmNlZFRyaWdnZXJQb3N0UmVuZGVyKCk7ICAgICAgICAgICAgICAgICAgICAgICAgb2JzZXJ2ZXIuZGlzY29ubmVjdCgpOyAgICAgICAgICAgICAgICAgICAgfSAgICAgICAgICAgICAgICB9KTsgICAgICAgICAgICB9KTsgICAgICAgICAgICBvYnNlcnZlci5vYnNlcnZlKCBkb2N1bWVudC5ib2R5LCB7ICAgICAgICAgICAgICAgIGF0dHJpYnV0ZXM6IHRydWUsICAgICAgICAgICAgICAgIGNoaWxkTGlzdDogZmFsc2UsICAgICAgICAgICAgICAgIHN1YnRyZWU6IHRydWUsICAgICAgICAgICAgICAgIGF0dHJpYnV0ZUZpbHRlcjogWyAnc3R5bGUnLCAnY2xhc3MnIF0sICAgICAgICAgICAgfSk7ICAgICAgICB9IGVsc2UgeyAgICAgICAgICAgIHRyaWdnZXJQb3N0UmVuZGVyKCk7ICAgICAgICB9ICAgIH0gKTt9ICk7IAovKiBdXT4gKi8KPC9zY3JpcHQ+Cg==
Téléchargez votre guide de l'acheteur gratuitement!