It typically takes 4-6 months for a puppy to be fully house trained, but some puppies may take up to a year. Size can be a predictor. For instance, smaller breeds have smaller bladders and higher metabolisms and require more frequent trips outside. Your puppy's previous living conditions are another predictor. You may find that you need to help your puppy break old habits in order to establish more desirable ones.
I have a 5ish year old Boxer we rescued 3 years ago. He was horribly abused, was terrified of men (and still is a little bit, it took him 2 months to get used to my husband), malnourished and suffers extreme separation anxiety. We tried everything under the Sun to help calm him and keep him relaxed. In our trial and error period of a full year he destroyed our mud room 3 times and chewed through 4 heavy gauge wire kennels. We can not, EVER, leave him in our home without a family member being home. He is still anxious if I, his alpha, am not home, but he doesn’t cause harm to himself or others. Luckily I am home with him most days.
This article presents serious, potentially-damaging misinformation. The suggestion that using food treats to train undermines someone’s relationship with their dog is untrue and sanctimonious. If using treats is bribery, how is using toys, affection, playtime, etc any different? If that were true, it’d all be bribery on some level, and we would go back to beating dogs when they did the wrong thing rather than praising what they do right.
Unless you plan to keep your dog outdoors--and few of us do because it's not recommended--you'll need to teach your dog where to eliminate. Therefore, house training (also called housebreaking or potty training) is one of the first things you need to work on with your dog. Crate training can be a very helpful part of the training process. This includes house training as well as many other areas of training: