A hard inquiry will remain on your credit report for up to two years. A hard inquiry occurs when someone requests a copy of your credit report as part of an application for credit. Soft credit inquiries, where the creditor accesses your credit score without pulling your credit, appear on your credit report but do not affect your credit score.