Yes, you can still deduct the business portion of a trip even if you extend it for personal vacation days, but you have to separate the costs carefully. The key rule is that transportation costs, like airfare, are deductible in full as long as the primary purpose of the trip is business, while costs tied to the days you stay for personal reasons generally are not.
The IRS looks at the primary purpose of the trip, which usually comes down to how many days are spent on legitimate business activities versus personal ones. If you fly to a city for a 4-day conference and then stay 3 extra days to sightsee, the trip as a whole can still count as a business trip, meaning your round-trip airfare is fully deductible, because the trip was undertaken primarily for business. However, your hotel, meals, and local transportation for those extra 3 personal days are not deductible, since those costs apply only to you personally and aren't necessary for the business purpose.
To make the split cleanly, keep track of which days are business days and which are personal. A day counts as a business day if you spend the majority of normal working hours on business activities such as meetings, conferences, client visits, or necessary travel to and from the destination. Weekends or holidays that fall between two business days can sometimes count as business days too, if it would be impractical or more expensive to fly home and back. Days spent purely sightseeing, relaxing, or visiting family do not count as business days.
For lodging and meals, you can only deduct the nights and meals that correspond to business days. If your hotel folio shows 7 nights and only 4 were for business, you deduct the cost of those 4 nights, not the full stay. Meals follow the same split, and typically only a portion of meal costs (not the full amount) is deductible even on legitimate business days, per standard business meal deduction rules.
If your trip is primarily personal, meaning most of the days are vacation and only a day or two involve business, the math flips. In that case, your airfare is generally not deductible at all, though you can still deduct specific business-related costs incurred on the business day or days, such as a registration fee for a seminar you attended or a taxi fare to a single business meeting.
Bringing a spouse or family member along doesn't change your own deduction, but you cannot deduct their airfare, lodging share, or meals unless they have a legitimate business purpose for being there too, such as being a co-owner or employee actively participating in the work.
Keep solid documentation: a trip itinerary, conference agenda, meeting confirmations, and receipts that show dates clearly. This paper trail is what protects you if the IRS ever asks you to justify the business versus personal split. When trips get complex, especially international ones with different day-counting rules, a tax professional can help make sure you're maximizing legitimate deductions without crossing into personal expense territory.